[tint][glsl] Remove unused options to glsl::texture_polyfill. Bug: 411573957 Change-Id: Ic862448556cf0789c3aa30020277e84c448055a6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/247394 Auto-Submit: Corentin Wallez <cwallez@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/tint/lang/glsl/writer/raise/raise.cc b/src/tint/lang/glsl/writer/raise/raise.cc index eeb9feb..c36b235 100644 --- a/src/tint/lang/glsl/writer/raise/raise.cc +++ b/src/tint/lang/glsl/writer/raise/raise.cc
@@ -191,7 +191,6 @@ // Must come after DirectVariableAccess raise::TexturePolyfillConfig tex_config; tex_config.placeholder_sampler_bind_point = options.bindings.placeholder_sampler_bind_point; - tex_config.texture_builtins_from_uniform = options.bindings.texture_builtins_from_uniform; RUN_TRANSFORM(raise::TexturePolyfill, module, tex_config); }
diff --git a/src/tint/lang/glsl/writer/raise/texture_polyfill.cc b/src/tint/lang/glsl/writer/raise/texture_polyfill.cc index 22c7523..7adbbaa 100644 --- a/src/tint/lang/glsl/writer/raise/texture_polyfill.cc +++ b/src/tint/lang/glsl/writer/raise/texture_polyfill.cc
@@ -63,7 +63,7 @@ core::type::Manager& ty{ir.Types()}; // A map of single texture to the replacement var. Note, this doesn't just re-use the - // `texture_sampler_to_replacment` with the placeholder sampler because we can share an + // `texture_sampler_to_replacement` with the placeholder sampler because we can share an // individual texture with a texture,sampler pair. So, if we create the texture as `t1,s1` we // want to use that `t1` individually but if we look it up with `t1,sp` then we won't find it. // This secondary map exists to allow us access to textures which may have been created
diff --git a/src/tint/lang/glsl/writer/raise/texture_polyfill.h b/src/tint/lang/glsl/writer/raise/texture_polyfill.h index d6faefc..96fb5b0 100644 --- a/src/tint/lang/glsl/writer/raise/texture_polyfill.h +++ b/src/tint/lang/glsl/writer/raise/texture_polyfill.h
@@ -42,15 +42,8 @@ /// The binding point to use for placeholder samplers. BindingPoint placeholder_sampler_bind_point; - /// Options used to map WGSL textureNumLevels/textureNumSamples builtins to internal uniform - /// buffer values. If not specified, emits corresponding GLSL builtins - /// textureQueryLevels/textureSamples directly. - TextureBuiltinsFromUniformOptions texture_builtins_from_uniform; - /// Reflection for this class - TINT_REFLECT(TexturePolyfillConfig, - placeholder_sampler_bind_point, - texture_builtins_from_uniform); + TINT_REFLECT(TexturePolyfillConfig, placeholder_sampler_bind_point); }; /// TexturePolyfill is a transform that replaces textures, samplers and functions calls to make them