summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_dump.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-10-07 15:41:17 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-10-14 15:40:39 -0700
commit4c9dec80edeb7f1d1774ca51faa806241c1c59cb (patch)
tree8bfdef03e92a399a107f517098878d16bf0f57f1 /src/intel/vulkan/anv_dump.c
parentac77528f7d383ee103ed702590f7bc9f05907b61 (diff)
downloadexternal_mesa3d-4c9dec80edeb7f1d1774ca51faa806241c1c59cb.zip
external_mesa3d-4c9dec80edeb7f1d1774ca51faa806241c1c59cb.tar.gz
external_mesa3d-4c9dec80edeb7f1d1774ca51faa806241c1c59cb.tar.bz2
anv: Get rid of the ANV_CALL macro
This macro was needed by meta in order to make gen-specific calls from gen-agnostic code. Now that we don't have meta, the remaining two uses are fairly trivial to get rid of. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/intel/vulkan/anv_dump.c')
-rw-r--r--src/intel/vulkan/anv_dump.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_dump.c b/src/intel/vulkan/anv_dump.c
index ed1b575..0a359a0 100644
--- a/src/intel/vulkan/anv_dump.c
+++ b/src/intel/vulkan/anv_dump.c
@@ -112,7 +112,11 @@ dump_image_do_blit(struct anv_device *device, struct dump_image *image,
VkImageAspectFlagBits aspect,
unsigned miplevel, unsigned array_layer)
{
- ANV_CALL(CmdPipelineBarrier)(anv_cmd_buffer_to_handle(cmd_buffer),
+ PFN_vkCmdPipelineBarrier CmdPipelineBarrier =
+ (void *)anv_GetDeviceProcAddr(anv_device_to_handle(device),
+ "vkCmdPipelineBarrier");
+
+ CmdPipelineBarrier(anv_cmd_buffer_to_handle(cmd_buffer),
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_PIPELINE_STAGE_TRANSFER_BIT,
0, 0, NULL, 0, NULL, 1,
@@ -169,7 +173,7 @@ dump_image_do_blit(struct anv_device *device, struct dump_image *image,
src->usage = old_usage;
- ANV_CALL(CmdPipelineBarrier)(anv_cmd_buffer_to_handle(cmd_buffer),
+ CmdPipelineBarrier(anv_cmd_buffer_to_handle(cmd_buffer),
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_PIPELINE_STAGE_TRANSFER_BIT,
0, 0, NULL, 0, NULL, 1,