Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b965ff5

Browse files
SenorBlancoSkia Commit-Bot
authored andcommitted
Dawn: fix SamplerDescriptor params.
Remove comparison function from SamplerDescriptor, to avoid new validation error. Also remove other values which are at default. Change-Id: I99631187f02d6b26748a34cf07c0bc672e2f0607 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/285014 Reviewed-by: Brian Salomon <[email protected]> Commit-Queue: Stephen White <[email protected]>
1 parent 9599863 commit b965ff5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/gpu/dawn/GrDawnGpu.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,6 @@ wgpu::Sampler GrDawnGpu::getOrCreateSampler(GrSamplerState samplerState) {
678678
desc.addressModeW = wgpu::AddressMode::ClampToEdge;
679679
desc.magFilter = desc.minFilter = to_dawn_filter_mode(samplerState.filter());
680680
desc.mipmapFilter = wgpu::FilterMode::Linear;
681-
desc.lodMinClamp = 0.0f;
682-
desc.lodMaxClamp = 1000.0f;
683-
desc.compare = wgpu::CompareFunction::Never;
684681
wgpu::Sampler sampler = device().CreateSampler(&desc);
685682
fSamplers.insert(std::pair<GrSamplerState, wgpu::Sampler>(samplerState, sampler));
686683
return sampler;

0 commit comments

Comments
 (0)