From 96b57faf3575c1eecde308da5f5dd26c2682c762 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 21 Dec 2021 15:22:05 +1000 Subject: [PATCH] mesa/st: drop useless tex parameter calls. st_TexParameter never does anything for these Reviewed-by: Kristian H. Kristensen Part-of: --- src/mesa/main/texobj.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index b6440494834..84c71c698b6 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -442,12 +442,6 @@ finish_texture_init(struct gl_context *ctx, GLenum target, obj->Sampler.Attrib.state.min_img_filter = filter_to_gallium(filter); obj->Sampler.Attrib.state.min_mip_filter = mipfilter_to_gallium(filter); obj->Sampler.Attrib.state.mag_img_filter = filter_to_gallium(filter); - /* XXX we probably don't need to make all these calls */ - st_TexParameter(ctx, obj, GL_TEXTURE_WRAP_S); - st_TexParameter(ctx, obj, GL_TEXTURE_WRAP_T); - st_TexParameter(ctx, obj, GL_TEXTURE_WRAP_R); - st_TexParameter(ctx, obj, GL_TEXTURE_MIN_FILTER); - st_TexParameter(ctx, obj, GL_TEXTURE_MAG_FILTER); break; default: