From: Jason Ekstrand Date: Sat, 16 May 2015 17:42:51 +0000 (-0700) Subject: vk/device: Use bias rather than layers for computing binding table size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=057bef8a84aaa783bec279b1c08b7a716dcb410c;p=mesa.git vk/device: Use bias rather than layers for computing binding table size Because we statically use the first 8 binding table entries for render targets, we need to create a table of size 8 + surfaces. --- diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 8e60398373b..e2871fa43ba 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -2274,7 +2274,7 @@ flush_descriptor_sets(struct anv_cmd_buffer *cmd_buffer) struct anv_state state; uint32_t size; - size = (layers + surface_count) * sizeof(uint32_t); + size = (bias + surface_count) * sizeof(uint32_t); state = anv_state_stream_alloc(&cmd_buffer->surface_state_stream, size, 32); memcpy(state.map, bindings->descriptors[s].surfaces, size);