Mesa (main): mesa/st: drop useless tex parameter calls.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jan 21 01:47:16 UTC 2022
Module: Mesa
Branch: main
Commit: 96b57faf3575c1eecde308da5f5dd26c2682c762
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=96b57faf3575c1eecde308da5f5dd26c2682c762
Author: Dave Airlie <airlied at redhat.com>
Date: Tue Dec 21 15:22:05 2021 +1000
mesa/st: drop useless tex parameter calls.
st_TexParameter never does anything for these
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14632>
---
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:
More information about the mesa-commit
mailing list