diff options
author | Marek Olšák <[email protected]> | 2017-03-23 22:42:56 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-03-29 15:44:00 +0200 |
commit | d68150f15d41756fa7153cd6b597ff52ec85a933 (patch) | |
tree | 39148e97f68982d67585e715aad7cdea438681a3 /src/mesa/main/texparam.c | |
parent | 226ff6aa30701fb1b4e69e07c5d76c4d9b5e5d77 (diff) |
mesa: split _NEW_TEXTURE into _NEW_TEXTURE_OBJECT & _NEW_TEXTURE_STATE
No performance testing has been done, because it makes sense to make this
change regardless of that. Also, _NEW_TEXTURE is still used in many places,
but the obvious occurences are replaced here.
It's now possible to split _NEW_TEXTURE_OBJECT further.
Reviewed-by: Edward O'Callaghan <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main/texparam.c')
-rw-r--r-- | src/mesa/main/texparam.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 4db406fa9f6..25165e4eded 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -233,21 +233,21 @@ set_swizzle_component(GLuint *swizzle, GLuint comp, GLuint swz) static inline void flush(struct gl_context *ctx) { - FLUSH_VERTICES(ctx, _NEW_TEXTURE); + FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT); } /** * This is called just prior to changing any texture object state which * could affect texture completeness (texture base level, max level). - * Any pending rendering will be flushed out, we'll set the _NEW_TEXTURE + * Any pending rendering will be flushed out, we'll set the _NEW_TEXTURE_OBJECT * state flag and then mark the texture object as 'incomplete' so that any * per-texture derived state gets recomputed. */ static inline void incomplete(struct gl_context *ctx, struct gl_texture_object *texObj) { - FLUSH_VERTICES(ctx, _NEW_TEXTURE); + FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT); _mesa_dirty_texobj(ctx, texObj); } @@ -982,7 +982,7 @@ _mesa_texture_parameterIiv(struct gl_context *ctx, _mesa_error(ctx, GL_INVALID_ENUM, "glTextureParameterIiv(texture)"); return; } - FLUSH_VERTICES(ctx, _NEW_TEXTURE); + FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT); /* set the integer-valued border color */ COPY_4V(texObj->Sampler.BorderColor.i, params); break; @@ -1004,7 +1004,7 @@ _mesa_texture_parameterIuiv(struct gl_context *ctx, _mesa_error(ctx, GL_INVALID_ENUM, "glTextureParameterIuiv(texture)"); return; } - FLUSH_VERTICES(ctx, _NEW_TEXTURE); + FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT); /* set the unsigned integer-valued border color */ COPY_4V(texObj->Sampler.BorderColor.ui, params); break; |