Commit eaab2e34 by Stephan Hartmann Committed by Commit Bot

Vulkan: add explicit template specialization for barrierImpl

ImageHelper::barrierImpl with secondary command buffer is used in other translation units. Linking fails if compiler has optimized out symbol for secondary command buffer. Bug: angleproject:5324 Change-Id: I588d0d949a9b2eee04d8103effc485ab23d679c6 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2526082Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
parent 9217d49d
...@@ -68,3 +68,4 @@ Ethan Lee ...@@ -68,3 +68,4 @@ Ethan Lee
Renaud Lepage Renaud Lepage
Artem Bolgar Artem Bolgar
Wander Lairson Costa Wander Lairson Costa
Stephan Hartmann
\ No newline at end of file
...@@ -4074,6 +4074,12 @@ void ImageHelper::barrierImpl(VkImageAspectFlags aspectMask, ...@@ -4074,6 +4074,12 @@ void ImageHelper::barrierImpl(VkImageAspectFlags aspectMask,
mCurrentQueueFamilyIndex = newQueueFamilyIndex; mCurrentQueueFamilyIndex = newQueueFamilyIndex;
} }
template void ImageHelper::barrierImpl<rx::vk::priv::SecondaryCommandBuffer>(
VkImageAspectFlags aspectMask,
ImageLayout newLayout,
uint32_t newQueueFamilyIndex,
rx::vk::priv::SecondaryCommandBuffer *commandBuffer);
bool ImageHelper::updateLayoutAndBarrier(VkImageAspectFlags aspectMask, bool ImageHelper::updateLayoutAndBarrier(VkImageAspectFlags aspectMask,
ImageLayout newLayout, ImageLayout newLayout,
PipelineBarrier *barrier) PipelineBarrier *barrier)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment