OSDN Git Service

etnaviv: Cannot render to rb-swapped formats
authorWladimir J. van der Laan <laanwj@gmail.com>
Wed, 7 Dec 2016 12:59:54 +0000 (12:59 +0000)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Tue, 31 Jan 2017 08:28:28 +0000 (09:28 +0100)
commit658568941d5e232d690e1ffbcddbd6ea9685693a
tree313d3b55a913085d4c0817f7dc34422ae77a8c11
parent82fe240a9912d78bc2eec513c1139c918c5f189f
etnaviv: Cannot render to rb-swapped formats

Exposing rb swapped (or other swizzled) formats for rendering would
involve swizzing in the pixel shader. This is not the case at the
moment, so reject requests for creating such surfaces.

(GPUs that need an extra resolve step anyway due to multiple pixel
pipes, such as gc2000, might also do this swap in the resolve operation.
But this would be tricky to keep track of)

CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Acked-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_screen.c