summaryrefslogtreecommitdiff
path: root/src/mesa/main/samplerobj.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2020-10-05 02:45:03 -0400
committerMarge Bot <eric+marge@anholt.net>2020-12-01 11:52:11 +0000
commit9a8b54285d24e84facc6f7aefe486a568b6e80c4 (patch)
tree9831010ffe437eb9cb8d18fffc3deb58fe14c607 /src/mesa/main/samplerobj.h
parent7fa9d9d06c44e9cf3d39b2ce5126bf1b0abff586 (diff)
mesa: reorganize gl_texture and sampler structures for glPush/PopAttrib
Put the fields saved by glPush/PopAttrib into the sub-structure declared as Attrib. This will make glPush/PopAttrib much faster because it will only save and restore that structure. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6946>
Diffstat (limited to 'src/mesa/main/samplerobj.h')
-rw-r--r--src/mesa/main/samplerobj.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/samplerobj.h b/src/mesa/main/samplerobj.h
index 2a28757b9b2..2e9903352a2 100644
--- a/src/mesa/main/samplerobj.h
+++ b/src/mesa/main/samplerobj.h
@@ -51,7 +51,7 @@ _mesa_get_samplerobj(struct gl_context *ctx, GLuint unit)
static inline GLboolean
_mesa_is_mipmap_filter(const struct gl_sampler_object *samp)
{
- return samp->MinFilter != GL_NEAREST && samp->MinFilter != GL_LINEAR;
+ return samp->Attrib.MinFilter != GL_NEAREST && samp->Attrib.MinFilter != GL_LINEAR;
}