diff --git a/src/tests/end2end/TextureFormatTests.cpp b/src/tests/end2end/TextureFormatTests.cpp index f26153f2f9..13a78c66a5 100644 --- a/src/tests/end2end/TextureFormatTests.cpp +++ b/src/tests/end2end/TextureFormatTests.cpp @@ -229,7 +229,11 @@ class TextureFormatTest : public DawnTest { // Prepare objects needed to sample from texture in the renderpass wgpu::RenderPipeline pipeline = CreateSamplePipeline(sampleFormatInfo, renderFormatInfo); - wgpu::SamplerDescriptor samplerDesc = utils::GetDefaultSamplerDescriptor(); + + // In this test we always use the default values of mag/min/mipmap filter + // (FilterMode::Nearest) because integer/unsigned integer textures must be sampled with + // FilterMode::Nearest. + wgpu::SamplerDescriptor samplerDesc; wgpu::Sampler sampler = device.CreateSampler(&samplerDesc); wgpu::BindGroup bindGroup = utils::MakeBindGroup(device, pipeline.GetBindGroupLayout(0),