summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen75_pack.h
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2015-06-21 23:47:10 -0700
committerKristian Høgsberg Kristensen <[email protected]>2015-06-24 09:37:50 -0700
commit24dff4f8faa9c66f8813f759aca04fc4225ccb4c (patch)
tree3b136f654ed8d04fe2d637ce28ec16dd0650db0e /src/vulkan/gen75_pack.h
parenta62edcce4eb4c800d972817a20ee874bf2a2c3ef (diff)
vk/headers: Handle MBO fields
These must be set to one.
Diffstat (limited to 'src/vulkan/gen75_pack.h')
-rw-r--r--src/vulkan/gen75_pack.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vulkan/gen75_pack.h b/src/vulkan/gen75_pack.h
index 1653cb11ae3..5d89a44efa5 100644
--- a/src/vulkan/gen75_pack.h
+++ b/src/vulkan/gen75_pack.h
@@ -45,6 +45,12 @@ union __gen_value {
};
static inline uint64_t
+__gen_mbo(uint32_t start, uint32_t end)
+{
+ return (~0ul >> (64 - (end - start + 1))) << start;
+}
+
+static inline uint64_t
__gen_field(uint64_t v, uint32_t start, uint32_t end)
{
__gen_validate_value(v);
@@ -1158,6 +1164,7 @@ GEN75_3DSTATE_BLEND_STATE_POINTERS_pack(__gen_user_data *data, void * restrict d
dw[1] =
__gen_offset(values->BlendStatePointer, 6, 31) |
+ __gen_mbo(0, 0) |
0;
}
@@ -1196,6 +1203,7 @@ GEN75_3DSTATE_CC_STATE_POINTERS_pack(__gen_user_data *data, void * restrict dst,
dw[1] =
__gen_offset(values->ColorCalcStatePointer, 6, 31) |
+ __gen_mbo(0, 0) |
0;
}
@@ -1755,6 +1763,7 @@ GEN75_3DSTATE_DEPTH_STENCIL_STATE_POINTERS_pack(__gen_user_data *data, void * re
dw[1] =
__gen_offset(values->PointertoDEPTH_STENCIL_STATE, 6, 31) |
+ __gen_mbo(0, 0) |
0;
}
@@ -2207,6 +2216,7 @@ GEN75_3DSTATE_GATHER_POOL_ALLOC_pack(__gen_user_data *data, void * restrict dst,
GEN75_MEMORY_OBJECT_CONTROL_STATE_pack(data, &dw_MemoryObjectControlState, &values->MemoryObjectControlState);
uint32_t dw1 =
__gen_field(values->GatherPoolEnable, 11, 11) |
+ __gen_mbo(4, 5) |
__gen_field(dw_MemoryObjectControlState, 0, 3) |
0;