All of lore.kernel.org
 help / color / mirror / Atom feed
* drm/amdgpu/display: Multiple fixed-point implementations
@ 2016-12-10 10:29 Hristo Venev
       [not found] ` <1481365744.3081.2.camel-dptOiocmjbVBDLzU/O5InQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Hristo Venev @ 2016-12-10 10:29 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 668 bytes --]

There are at least three implementations of fixed-point arithmetic in
drm/amdgpu/display: fixed31_32 (signed 32-32), fixed32_32 (unsigned 32-
32) and bw_fixed (signed 40-24). I don't think fixed-point arithmetic
implementations belong in drivers.

There already are two implementations of fixed-point in drm: fixed20_12
(unsigned 20-12) and drm_fixp (signed 32-32). The latter could be used
instead of fixed31_32.

Maybe we could use a standard fixed-point interface and share the
source code between most (or all) of the implementations. This is one
of the things that can be done before merging DC and is not too driver-
specific. What do you guys think?

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: drm/amdgpu/display: Multiple fixed-point implementations
       [not found] ` <1481365744.3081.2.camel-dptOiocmjbVBDLzU/O5InQ@public.gmane.org>
@ 2016-12-10 22:25   ` Deucher, Alexander
  0 siblings, 0 replies; 2+ messages in thread
From: Deucher, Alexander @ 2016-12-10 22:25 UTC (permalink / raw)
  To: 'Hristo Venev',
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
> Of Hristo Venev
> Sent: Saturday, December 10, 2016 5:29 AM
> To: amd-gfx@lists.freedesktop.org
> Subject: drm/amdgpu/display: Multiple fixed-point implementations
> 
> There are at least three implementations of fixed-point arithmetic in
> drm/amdgpu/display: fixed31_32 (signed 32-32), fixed32_32 (unsigned 32-
> 32) and bw_fixed (signed 40-24). I don't think fixed-point arithmetic
> implementations belong in drivers.
> 
> There already are two implementations of fixed-point in drm: fixed20_12
> (unsigned 20-12) and drm_fixp (signed 32-32). The latter could be used
> instead of fixed31_32.
> 
> Maybe we could use a standard fixed-point interface and share the
> source code between most (or all) of the implementations. This is one
> of the things that can be done before merging DC and is not too driver-
> specific. What do you guys think?

Sure.  It would be nice to unify them especially if other drivers need them at some point.

Alex

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-10 22:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-10 10:29 drm/amdgpu/display: Multiple fixed-point implementations Hristo Venev
     [not found] ` <1481365744.3081.2.camel-dptOiocmjbVBDLzU/O5InQ@public.gmane.org>
2016-12-10 22:25   ` Deucher, Alexander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.