All of lore.kernel.org
 help / color / mirror / Atom feed
* radeonsi tiling dilema
@ 2013-04-02 18:13 Jerome Glisse
  2013-04-02 18:47 ` Jerome Glisse
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jerome Glisse @ 2013-04-02 18:13 UTC (permalink / raw)
  To: dri-devel@lists.freedesktop.org


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

So i am facing a dilema regarding tiling on radeonsi. Given that we now
have a fixed table of tiling mode this put more pressure on the kernel
userspace api. I see either 2 solutions.

Enforce kernel to set at fixed index in the table best tiling mode for
given gpu for given format, such as DEPTH32_2D_4AA at index 4, or
COLOR_SCANOUT_2D at index 13 ... that way kernel can still adapt the tile
mode array value. Note that this match the design behind the tile mode
index being that there is a limited number of useful tile mode combination
and for each surface format  (depth/color/macro tile/micro/tile) there is a
best one.

Second solution is to add an ioctl to compute mipmap information in kernel
(pitch alignment slice size ...) based on format, size of the surface.

Some might argue that we could just export the table content to userspace,
but that would loose information and possibly froze the tile mode table
forever as API. The information we loose is what index match to prefered
surface format/type combination. And the tile mode might be considered API
as if kernel ever change what userspace expect then we might break some
userspace.


Thought, idea ?

Cheers,
Jerome

[-- Attachment #1.2: Type: text/html, Size: 1333 bytes --]

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

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2013-04-04  9:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-02 18:13 radeonsi tiling dilema Jerome Glisse
2013-04-02 18:47 ` Jerome Glisse
2013-04-02 20:32 ` Alex Deucher
2013-04-02 22:28   ` Jerome Glisse
2013-04-03  9:37 ` Michel Dänzer
2013-04-03 13:57   ` Jerome Glisse
2013-04-03 15:48     ` Christian König
2013-04-03 15:57       ` Alex Deucher
2013-04-04  9:00         ` Christian König
2013-04-03 16:11     ` Michel Dänzer
2013-04-03 17:04       ` Jerome Glisse
2013-04-04  7:42         ` Michel Dänzer

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.