summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/genhw
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2015-06-16 23:11:06 +0800
committerChia-I Wu <[email protected]>2015-06-20 11:14:14 +0800
commite8d297b7a108fcf1cb688fe1db89e83b8f85e091 (patch)
tree4d77f676c5657eca6cdd2addd1281ddf0a0fda83 /src/gallium/drivers/ilo/genhw
parent7b3432b62d25494b3662d12634e34d75e29ec865 (diff)
ilo: add 3DSTATE_VF to ilo_state_vf
3DSTATE_VF specifies cut index enable and cut index. Cut index enable is specified in 3DSTATE_INDEX_BUFFER instead prior to Gen7.5. Both commands are added.
Diffstat (limited to 'src/gallium/drivers/ilo/genhw')
-rw-r--r--src/gallium/drivers/ilo/genhw/gen_render_3d.xml.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/ilo/genhw/gen_render_3d.xml.h b/src/gallium/drivers/ilo/genhw/gen_render_3d.xml.h
index 1abfef987b5..60e3922e286 100644
--- a/src/gallium/drivers/ilo/genhw/gen_render_3d.xml.h
+++ b/src/gallium/drivers/ilo/genhw/gen_render_3d.xml.h
@@ -105,6 +105,12 @@ enum gen_state_alignment {
GEN8_ALIGNMENT_SURFACE_STATE = 0x40,
};
+enum gen_index_format {
+ GEN6_INDEX_BYTE = 0x0,
+ GEN6_INDEX_WORD = 0x1,
+ GEN6_INDEX_DWORD = 0x2,
+};
+
enum gen_vf_component {
GEN6_VFCOMP_NOSTORE = 0x0,
GEN6_VFCOMP_STORE_SRC = 0x1,
@@ -366,9 +372,6 @@ enum gen_msrast_mode {
#define GEN6_IB_DW0_CUT_INDEX_ENABLE (0x1 << 10)
#define GEN6_IB_DW0_FORMAT__MASK 0x00000300
#define GEN6_IB_DW0_FORMAT__SHIFT 8
-#define GEN6_IB_DW0_FORMAT_BYTE (0x0 << 8)
-#define GEN6_IB_DW0_FORMAT_WORD (0x1 << 8)
-#define GEN6_IB_DW0_FORMAT_DWORD (0x2 << 8)
@@ -376,9 +379,6 @@ enum gen_msrast_mode {
#define GEN8_IB_DW1_FORMAT__MASK 0x00000300
#define GEN8_IB_DW1_FORMAT__SHIFT 8
-#define GEN8_IB_DW1_FORMAT_BYTE (0x0 << 8)
-#define GEN8_IB_DW1_FORMAT_WORD (0x1 << 8)
-#define GEN8_IB_DW1_FORMAT_DWORD (0x2 << 8)
#define GEN8_IB_DW1_MOCS__MASK 0x0000007f
#define GEN8_IB_DW1_MOCS__SHIFT 0