summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_device.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-02-11 18:57:37 -0800
committerJason Ekstrand <[email protected]>2016-02-11 19:00:56 -0800
commit25b09d1b5d74a946700f0956799cf00db0edae1a (patch)
tree96821a0ba2cd482749e84e3e61f3d2be7cbd4e36 /src/vulkan/anv_device.c
parent3086c5a5e10e6faef0de3e62ba508fef82239df3 (diff)
anv/event: Use a 64-bit value
The immediate write from PIPE_CONTROL is 64-bits at least on BDW. This used to work on 64-bit archs because the compiler would align the following anv_state struct up for us. However, in 32-bit builds, they overlap and it causes problems.
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r--src/vulkan/anv_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c
index 6f874b2d1ab..21184c4a201 100644
--- a/src/vulkan/anv_device.c
+++ b/src/vulkan/anv_device.c
@@ -1534,7 +1534,7 @@ VkResult anv_CreateEvent(
assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_EVENT_CREATE_INFO);
state = anv_state_pool_alloc(&device->dynamic_state_pool,
- sizeof(*event), 4);
+ sizeof(*event), 8);
event = state.map;
event->state = state;
event->semaphore = VK_EVENT_RESET;