projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22e61c9
)
vk/device: Use bias rather than layers for computing binding table size
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 16 May 2015 17:42:51 +0000
(10:42 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 16 May 2015 17:42:53 +0000
(10:42 -0700)
Because we statically use the first 8 binding table entries for render
targets, we need to create a table of size 8 + surfaces.
src/vulkan/device.c
patch
|
blob
|
history
diff --git
a/src/vulkan/device.c
b/src/vulkan/device.c
index 8e60398373b6550a48e6899524d83d2c0d75381d..e2871fa43bab7bfc8a1f836ef0eb302455bad2ce 100644
(file)
--- 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 = (
layer
s + surface_count) * sizeof(uint32_t);
+ size = (
bia
s + 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);