Skip to content

Commit

Permalink
Compat: Fix readonly depth-stencil sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 25, 2024
1 parent 49dd714 commit 25773c0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,16 @@ testing while the other one is used for sampling.
})
)
.beforeAllSubcases(t => {
const { format } = t.params;
const formatInfo = kTextureFormatInfo[format];
const hasDepth = formatInfo.depth !== undefined;
const hasStencil = formatInfo.stencil !== undefined;

t.selectDeviceForTextureFormatOrSkipTestCase(t.params.format);
t.skipIf(
t.isCompatibility && hasDepth && hasStencil,
'compatibility mode does not support different TEXTURE_BINDING views of the same texture in a single draw calls'
);
})
.fn(t => {
const { format, depthReadOnly, stencilReadOnly } = t.params;
Expand Down

0 comments on commit 25773c0

Please sign in to comment.