summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_cmd_buffer.c
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2015-08-19 16:01:33 -0700
committerKristian Høgsberg Kristensen <[email protected]>2015-08-24 13:45:40 -0700
commit8fe74ec45c93b3ec64243f351a7e2173a76cf788 (patch)
tree518a727aca3e079b943d1b9f249c80a567d7ddc7 /src/vulkan/anv_cmd_buffer.c
parenta2b822185ecc8868e1cccfaa98f16129f36c686b (diff)
vk: Add generic wrapper for filling out buffer surface state
We need this for generating surface state on the fly for dynamic buffer views. Signed-off-by: Kristian Høgsberg Kristensen <[email protected]>
Diffstat (limited to 'src/vulkan/anv_cmd_buffer.c')
-rw-r--r--src/vulkan/anv_cmd_buffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vulkan/anv_cmd_buffer.c b/src/vulkan/anv_cmd_buffer.c
index 4e3264cda69..951bb103430 100644
--- a/src/vulkan/anv_cmd_buffer.c
+++ b/src/vulkan/anv_cmd_buffer.c
@@ -425,8 +425,9 @@ anv_cmd_buffer_emit_binding_table(struct anv_cmd_buffer *cmd_buffer,
d->dynamic_offsets[surface_slots[b].dynamic_slot];
offset = view->offset + dynamic_offset;
- gen8_fill_buffer_surface_state(state.map, view->format, offset,
- view->range - dynamic_offset);
+ anv_fill_buffer_surface_state(cmd_buffer->device,
+ state.map, view->format, offset,
+ view->range - dynamic_offset);
} else {
offset = view->offset;
memcpy(state.map, view->surface_state.map, 64);