diff options
author | Jason Ekstrand <[email protected]> | 2016-10-17 09:28:46 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-10-17 17:41:35 -0700 |
commit | 2314c9ed2e39bcf4ac6b206344acb05fec876a41 (patch) | |
tree | 554600fd33eeb5b4f74d920bdfb51437b072877e /src/intel/vulkan/anv_dump.c | |
parent | ac0ca066de654fd80a6f18c9c32555d7d91c0335 (diff) |
anv/cmd_buffer: Move Begin/End/Execute to genX_cmd_buffer.c
vkBeginCommandBuffer and vkCmdExecuteCommands both call into the
gen-specific emit_state_base_address function and vkEndCommandBuffer
belongs with begin.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_dump.c')
-rw-r--r-- | src/intel/vulkan/anv_dump.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_dump.c b/src/intel/vulkan/anv_dump.c index 0a359a0015f..0608904219e 100644 --- a/src/intel/vulkan/anv_dump.c +++ b/src/intel/vulkan/anv_dump.c @@ -251,6 +251,13 @@ anv_dump_image_to_ppm(struct anv_device *device, VkDevice vk_device = anv_device_to_handle(device); MAYBE_UNUSED VkResult result; + PFN_vkBeginCommandBuffer BeginCommandBuffer = + (void *)anv_GetDeviceProcAddr(anv_device_to_handle(device), + "vkBeginCommandBuffer"); + PFN_vkEndCommandBuffer EndCommandBuffer = + (void *)anv_GetDeviceProcAddr(anv_device_to_handle(device), + "vkEndCommandBuffer"); + const uint32_t width = anv_minify(image->extent.width, miplevel); const uint32_t height = anv_minify(image->extent.height, miplevel); @@ -276,7 +283,7 @@ anv_dump_image_to_ppm(struct anv_device *device, }, &cmd); assert(result == VK_SUCCESS); - result = anv_BeginCommandBuffer(cmd, + result = BeginCommandBuffer(cmd, &(VkCommandBufferBeginInfo) { .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, .flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT, @@ -286,7 +293,7 @@ anv_dump_image_to_ppm(struct anv_device *device, dump_image_do_blit(device, &dump, anv_cmd_buffer_from_handle(cmd), image, aspect, miplevel, array_layer); - result = anv_EndCommandBuffer(cmd); + result = EndCommandBuffer(cmd); assert(result == VK_SUCCESS); VkFence fence; |