iris: Drop can_fast_clear_color's format parameter
[mesa.git] / src / gallium / drivers / iris / iris_defines.h
index d36b6452612c91c660a47ddf6a4367d3da1d81b7..ca103927800462fac7000b01a63bd3364e6ebc40 100644 (file)
 /* The number of bits in our TIMESTAMP queries. */
 #define TIMESTAMP_BITS 36
 
+/* For gen12 we set the streamout buffers using 4 separate commands
+ * (3DSTATE_SO_BUFFER_INDEX_*) instead of 3DSTATE_SO_BUFFER. However the layout
+ * of the 3DSTATE_SO_BUFFER_INDEX_* commands is identical to that of
+ * 3DSTATE_SO_BUFFER apart from the SOBufferIndex field, so for now we use the
+ * 3DSTATE_SO_BUFFER command, but change the 3DCommandSubOpcode.
+ * SO_BUFFER_INDEX_0_CMD is actually the 3DCommandSubOpcode for
+ * 3DSTATE_SO_BUFFER_INDEX_0.
+ */
+#define SO_BUFFER_INDEX_0_CMD 0x60
+
 #endif