Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan: Fix incorrect image layout for multi-layer-level depth/stencil images #2412

Merged
merged 1 commit into from
Nov 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions gapis/api/vulkan/image_primer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1357,11 +1357,11 @@ func (h *ipRenderHandler) render(job *ipRenderJob, tsk *scratchTask) error {
queueFamilyIgnore, // dstQueueFamilyIndex
job.renderTarget.image.VulkanHandle(), // image
NewVkImageSubresourceRange(h.sb.ta, // subresourceRange
outputBarrierAspect, // aspectMask
0, // baseMipLevel
job.renderTarget.image.Info().MipLevels(), // levelCount
0, // baseArrayLayer
job.renderTarget.image.Info().ArrayLayers(), // layerCount
outputBarrierAspect, // aspectMask
job.renderTarget.level, // baseMipLevel
1, // levelCount
job.renderTarget.layer, // baseArrayLayer
1, // layerCount
))
bufBarriers := []VkBufferMemoryBarrier{
NewVkBufferMemoryBarrier(h.sb.ta,
Expand Down Expand Up @@ -1531,11 +1531,11 @@ func (h *ipRenderHandler) render(job *ipRenderJob, tsk *scratchTask) error {
queueFamilyIgnore, // dstQueueFamilyIndex
job.renderTarget.image.VulkanHandle(), // image
NewVkImageSubresourceRange(h.sb.ta, // subresourceRange
outputBarrierAspect, // aspectMask
0, // baseMipLevel
job.renderTarget.image.Info().MipLevels(), // levelCount
0, // baseArrayLayer
job.renderTarget.image.Info().ArrayLayers(), // layerCount
outputBarrierAspect, // aspectMask
job.renderTarget.level, // baseMipLevel
1, // levelCount
job.renderTarget.layer, // baseArrayLayer
1, // layerCount
),
))
default:
Expand Down