summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen8_pack.h
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2015-06-13 23:12:58 -0700
committerKristian Høgsberg Kristensen <[email protected]>2015-06-17 21:42:29 -0700
commitaedd3c957940f9fd062495494ff6991a8eb4b548 (patch)
tree1a0ed46493a52f095660781843d3f5719aa87180 /src/vulkan/gen8_pack.h
parentfa8a07748d96525b208146065b5264821a9ef338 (diff)
vk: Add missing gen7 RENDER_SURFACE_STATE struct
Diffstat (limited to 'src/vulkan/gen8_pack.h')
-rw-r--r--src/vulkan/gen8_pack.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/vulkan/gen8_pack.h b/src/vulkan/gen8_pack.h
index 117e64ace7b..3b9e6235975 100644
--- a/src/vulkan/gen8_pack.h
+++ b/src/vulkan/gen8_pack.h
@@ -8202,6 +8202,24 @@ GEN8_INTERFACE_DESCRIPTOR_DATA_pack(__gen_user_data *data, void * restrict dst,
#define GEN8_PALETTE_ENTRY_length 0x00000001
+#define GEN8_BINDING_TABLE_STATE_length 0x00000001
+
+struct GEN8_BINDING_TABLE_STATE {
+ uint32_t SurfaceStatePointer;
+};
+
+static inline void
+GEN8_BINDING_TABLE_STATE_pack(__gen_user_data *data, void * restrict dst,
+ const struct GEN8_BINDING_TABLE_STATE * restrict values)
+{
+ uint32_t *dw = (uint32_t * restrict) dst;
+
+ dw[0] =
+ __gen_offset(values->SurfaceStatePointer, 6, 31) |
+ 0;
+
+}
+
#define GEN8_RENDER_SURFACE_STATE_length 0x00000010
struct GEN8_RENDER_SURFACE_STATE {