summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_packet.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-06-27 16:32:03 +0100
committerEric Anholt <[email protected]>2014-08-08 18:59:46 -0700
commit7108c24fd02a76f3efef4ba5d9aefdf0704ab0d8 (patch)
tree5d8483a00bb195aa6b410dca1dd42f0a8af66d54 /src/gallium/drivers/vc4/vc4_packet.h
parent427f934f9e75deafdc40348aad0426ea2b31515c (diff)
vc4: Use the user's actual first vertex attribute.
This is hardcoded to read it as RGBA32F so far, but starts to get more tests working.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_packet.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_packet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_packet.h b/src/gallium/drivers/vc4/vc4_packet.h
index e7c334c5556..e74411a6a21 100644
--- a/src/gallium/drivers/vc4/vc4_packet.h
+++ b/src/gallium/drivers/vc4/vc4_packet.h
@@ -114,6 +114,9 @@ enum vc4_packet {
#define VC4_STORE_TILE_BUFFER_FULL (5 << 0)
/** @} */
+#define VC4_INDEX_BUFFER_U8 (0 << 4)
+#define VC4_INDEX_BUFFER_U16 (1 << 4)
+
/* This flag is only present in NV shader state. */
#define VC4_SHADER_FLAG_SHADED_CLIP_COORDS (1 << 3)
#define VC4_SHADER_FLAG_ENABLE_CLIPPING (1 << 2)