mesa/st: drop new framebuffer srgb driver state bit
authorDave Airlie <airlied@redhat.com>
Mon, 20 Dec 2021 03:08:16 +0000 (13:08 +1000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Dec 2021 19:06:57 +0000 (19:06 +0000)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261>

src/mesa/main/enable.c
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_context.c

index 5e7a28f..6d5bc95 100644 (file)
@@ -377,9 +377,9 @@ _mesa_set_framebuffer_srgb(struct gl_context *ctx, GLboolean state)
       return;
 
    /* TODO: Switch i965 to the new flag and remove the conditional */
-   FLUSH_VERTICES(ctx, ctx->DriverFlags.NewFramebufferSRGB ? 0 : _NEW_BUFFERS,
+   FLUSH_VERTICES(ctx, 0,
                   GL_COLOR_BUFFER_BIT | GL_ENABLE_BIT);
-   ctx->NewDriverState |= ctx->DriverFlags.NewFramebufferSRGB;
+   ctx->NewDriverState |= ST_NEW_FB_STATE;
    ctx->Color.sRGBEnabled = state;
 
    st_Enable(ctx, GL_FRAMEBUFFER_SRGB);
index 68bbd2a..aa7a54e 100644 (file)
@@ -4773,9 +4773,6 @@ struct gl_driver_flags
     */
    uint64_t NewAtomicBuffer;
 
-   /** gl_context::Color::sRGBEnabled */
-   uint64_t NewFramebufferSRGB;
-
    /** gl_context::Color::Alpha* */
    uint64_t NewAlphaTest;
 
index 49329ae..fd26069 100644 (file)
@@ -460,8 +460,6 @@ st_init_driver_flags(struct st_context *st)
    f->NewShaderConstants[MESA_SHADER_FRAGMENT] = ST_NEW_FS_CONSTANTS;
    f->NewShaderConstants[MESA_SHADER_COMPUTE] = ST_NEW_CS_CONSTANTS;
 
-   f->NewFramebufferSRGB = ST_NEW_FB_STATE;
-
    if (st->lower_alpha_test)
       f->NewAlphaTest = ST_NEW_FS_STATE | ST_NEW_FS_CONSTANTS;
    else