mesa: remove NEW_COPY_TEX_STATE

Since _NEW_PIXEL isn't handled in _mesa_update_state anymore, we can
replace NEW_COPY_TEX_STATE by _NEW_BUFFERS.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13596>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2021-11-02 14:05:24 +01:00
parent 1ee3fbd703
commit 9b8bc712b2
1 changed files with 3 additions and 10 deletions

View File

@ -58,13 +58,6 @@
#include "pbo.h"
/**
* State changes which we care about for glCopyTex[Sub]Image() calls.
* In particular, we care about pixel transfer state and buffer state
* (such as glReadBuffer to make sure we read from the right renderbuffer).
*/
#define NEW_COPY_TEX_STATE (_NEW_BUFFERS | _NEW_PIXEL)
/**
* Returns a corresponding internal floating point format for a given base
* format as specifed by OES_texture_float. In case of GL_FLOAT, the internal
@ -4271,7 +4264,7 @@ copy_texture_sub_image_err(struct gl_context *ctx, GLuint dims,
_mesa_update_pixel(ctx);
if (ctx->NewState & NEW_COPY_TEX_STATE)
if (ctx->NewState & _NEW_BUFFERS)
_mesa_update_state(ctx);
if (copytexsubimage_error_check(ctx, dims, texObj, target, level,
@ -4296,7 +4289,7 @@ copy_texture_sub_image_no_error(struct gl_context *ctx, GLuint dims,
_mesa_update_pixel(ctx);
if (ctx->NewState & NEW_COPY_TEX_STATE)
if (ctx->NewState & _NEW_BUFFERS)
_mesa_update_state(ctx);
copy_texture_sub_image(ctx, dims, texObj, target, level, xoffset, yoffset,
@ -4327,7 +4320,7 @@ copyteximage(struct gl_context *ctx, GLuint dims, struct gl_texture_object *texO
_mesa_update_pixel(ctx);
if (ctx->NewState & NEW_COPY_TEX_STATE)
if (ctx->NewState & _NEW_BUFFERS)
_mesa_update_state(ctx);
if (!no_error) {