summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_gpu_memcpy.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-11-15 11:43:07 -0800
committerKenneth Graunke <[email protected]>2016-11-19 11:40:01 -0800
commit9ef2b9277d3bead6dbfa47e95794ca61e8be4e84 (patch)
tree4882c85a4cd35d4fad1c4b58423d3a80a7714c0b /src/intel/vulkan/genX_gpu_memcpy.c
parent6d416bcd846a49414f210cd761789156c37a7b3e (diff)
intel: Share URB configuration code between GL and Vulkan.
This code is far too complicated to cut and paste. v2: Update the newly added genX_gpu_memcpy.c; const a few things. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_gpu_memcpy.c')
-rw-r--r--src/intel/vulkan/genX_gpu_memcpy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/intel/vulkan/genX_gpu_memcpy.c b/src/intel/vulkan/genX_gpu_memcpy.c
index 10751b0a35e..eb11c2f0874 100644
--- a/src/intel/vulkan/genX_gpu_memcpy.c
+++ b/src/intel/vulkan/genX_gpu_memcpy.c
@@ -149,9 +149,11 @@ genX(cmd_buffer_gpu_memcpy)(struct anv_cmd_buffer *cmd_buffer,
* allocate space for the VS. Even though one isn't run, we need VUEs to
* store the data that VF is going to pass to SOL.
*/
+ const unsigned entry_size[4] = { DIV_ROUND_UP(32, 64), 1, 1, 1 };
+
genX(emit_urb_setup)(cmd_buffer->device, &cmd_buffer->batch,
- VK_SHADER_STAGE_VERTEX_BIT, DIV_ROUND_UP(32, 64), 0,
- cmd_buffer->state.current_l3_config);
+ cmd_buffer->state.current_l3_config,
+ VK_SHADER_STAGE_VERTEX_BIT, entry_size);
anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_SO_BUFFER), sob) {
sob.SOBufferIndex = 0;