Skip to content

Commit

Permalink
Handle VK_NULL_HANDLE attachments in VkRenderingFragmentShadingRateAt…
Browse files Browse the repository at this point in the history
…tachmentInfoKHR

Fixes the draw_instanced test in the vkd3d-proton test suite.
  • Loading branch information
CME42 authored and JaxLinAMD committed Mar 24, 2022
1 parent 6d693c7 commit 0d1bcd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion icd/api/vk_cmdbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7509,7 +7509,8 @@ void CmdBuffer::BindTargets(

PalCmdBuffer(deviceIdx)->CmdBindTargets(params);

if (pRenderingFragmentShadingRateAttachmentInfoKHR != nullptr)
if ((pRenderingFragmentShadingRateAttachmentInfoKHR != nullptr) &&
(pRenderingFragmentShadingRateAttachmentInfoKHR->imageView != VK_NULL_HANDLE))
{
// Get the image view from the attachment info
const ImageView* const pImageView =
Expand Down

0 comments on commit 0d1bcd4

Please sign in to comment.