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.
This commit is contained in:
Jason Ekstrand 2016-02-11 18:57:37 -08:00
parent 3086c5a5e1
commit 25b09d1b5d
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -1306,7 +1306,7 @@ struct anv_fence {
};
struct anv_event {
uint32_t semaphore;
uint64_t semaphore;
struct anv_state state;
};