DiscardView is broken on cubemap faces so whatever
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details

d3d11
cosmonaut 2024-03-07 00:16:11 -08:00
parent a80f3f40dd
commit 856a7004ae
1 changed files with 0 additions and 16 deletions

View File

@ -3046,14 +3046,6 @@ static void D3D11_BeginRenderPass(
if (texture->subresources[subresourceIndex].msaaHandle != NULL) if (texture->subresources[subresourceIndex].msaaHandle != NULL)
{ {
if (colorAttachmentInfos[i].writeOption == REFRESH_WRITEOPTIONS_SAFEDISCARD)
{
ID3D11DeviceContext1_DiscardView(
d3d11CommandBuffer->context,
(ID3D11View*) texture->subresources[subresourceIndex].msaaTargetView
);
}
d3d11CommandBuffer->colorTargetResolveTexture[i] = texture; d3d11CommandBuffer->colorTargetResolveTexture[i] = texture;
d3d11CommandBuffer->colorTargetResolveSubresourceIndex[i] = subresourceIndex; d3d11CommandBuffer->colorTargetResolveSubresourceIndex[i] = subresourceIndex;
d3d11CommandBuffer->colorTargetMsaaHandle[i] = texture->subresources[subresourceIndex].msaaHandle; d3d11CommandBuffer->colorTargetMsaaHandle[i] = texture->subresources[subresourceIndex].msaaHandle;
@ -3062,14 +3054,6 @@ static void D3D11_BeginRenderPass(
} }
else else
{ {
if (colorAttachmentInfos[i].writeOption == REFRESH_WRITEOPTIONS_SAFEDISCARD)
{
ID3D11DeviceContext1_DiscardView(
d3d11CommandBuffer->context,
(ID3D11View*) texture->subresources[subresourceIndex].colorTargetView
);
}
rtvs[i] = texture->subresources[subresourceIndex].colorTargetView; rtvs[i] = texture->subresources[subresourceIndex].colorTargetView;
} }
} }