Skip to content

Commit

Permalink
Compat: skip more multisample copyT2T tests
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Feb 6, 2024
1 parent e05aad5 commit 95501a0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,12 @@ Test that textures in copyTextureToTexture must have the same sample count.
.combine('srcSampleCount', [1, 4])
.combine('dstSampleCount', [1, 4])
)
.beforeAllSubcases(t => {
t.skipIf(
t.isCompatibility && (t.params.srcSampleCount !== 1 || t.params.dstSampleCount !== 1),
'multisample textures are not copyable in compatibility mode'
);
})
.fn(t => {
const { srcSampleCount, dstSampleCount } = t.params;

Expand Down Expand Up @@ -307,6 +313,9 @@ TODO: Check the source and destination constraints separately.
.expand('copyWidth', p => [32 - Math.max(p.srcCopyOrigin.x, p.dstCopyOrigin.x), 16])
.expand('copyHeight', p => [16 - Math.max(p.srcCopyOrigin.y, p.dstCopyOrigin.y), 8])
)
.beforeAllSubcases(t => {
t.skipIf(t.isCompatibility, 'multisample textures are not copyable in compatibility mode');
})
.fn(t => {
const { srcCopyOrigin, dstCopyOrigin, copyWidth, copyHeight } = t.params;

Expand Down

0 comments on commit 95501a0

Please sign in to comment.