summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_shader.h
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2017-03-21 20:00:31 +0100
committerChristian Gmeiner <[email protected]>2017-04-05 19:58:22 +0200
commit7f62ffb68ad1002b6ce7727ce7202de792d53653 (patch)
treef7d70f5199ca3dfcf73974b12a2925918cc6b9fe /src/gallium/drivers/etnaviv/etnaviv_shader.h
parent8d9a31ef9726192ff8e97f36bc05bb15c037ed27 (diff)
etnaviv: add support for rb swap
If we render to rb swapped format we will create a shader variant doing the involved swizzing in the pixel shader. Signed-off-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_shader.h')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_shader.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_shader.h b/src/gallium/drivers/etnaviv/etnaviv_shader.h
index e56f1fa9f53..121d5815ba0 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_shader.h
+++ b/src/gallium/drivers/etnaviv/etnaviv_shader.h
@@ -36,6 +36,12 @@ struct etna_shader_key
{
union {
struct {
+ /*
+ * Combined Vertex/Fragment shader parameters:
+ */
+
+ /* do we need to swap rb in frag color? */
+ unsigned frag_rb_swap : 1;
};
uint32_t global;
};