Skip to content

Always enable storage image usage for non-RTV 2D images#1806

Draft
doitsujin wants to merge 1 commit intoHansKristian-Work:masterfrom
doitsujin:resolve-storage-image-usage
Draft

Always enable storage image usage for non-RTV 2D images#1806
doitsujin wants to merge 1 commit intoHansKristian-Work:masterfrom
doitsujin:resolve-storage-image-usage

Conversation

@doitsujin
Copy link
Copy Markdown
Collaborator

@doitsujin doitsujin commented Dec 8, 2023

Needed for multisample resolve in some cases, but this is scary and needs testing on a wide range of hardware.

Builds on #1805.

This allows multisample resolves to be performed on resources which
do not support render target usage.

Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
@HansKristian-Work
Copy link
Copy Markdown
Owner

Asked an NV dev and they suggested this won't change anything for them.


/* Add storage image usage if the image cannot be rendered to, but may
* be used as a destination image for multisample resolves. */
if (desc->Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE2D && desc->SampleDesc.Count == 1 &&
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be safe to land this if we check for AMD or NVIDIA for now. I'm still concerned about e.g. Intel/Turnip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants