[Mesa-dev] [PATCH 3/7] st/mesa: don't update MSAA states for GL_FRAMEBUFFER_SRGB

Marek Olšák maraeo at gmail.com
Mon Jun 12 16:56:55 UTC 2017


From: Marek Olšák <marek.olsak at amd.com>

---
 src/mesa/state_tracker/st_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index cbc39b1..26f80b6 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -493,21 +493,21 @@ static void st_init_driver_flags(struct st_context *st)
    f->NewShaderConstants[MESA_SHADER_VERTEX] = ST_NEW_VS_CONSTANTS;
    f->NewShaderConstants[MESA_SHADER_TESS_CTRL] = ST_NEW_TCS_CONSTANTS;
    f->NewShaderConstants[MESA_SHADER_TESS_EVAL] = ST_NEW_TES_CONSTANTS;
    f->NewShaderConstants[MESA_SHADER_GEOMETRY] = ST_NEW_GS_CONSTANTS;
    f->NewShaderConstants[MESA_SHADER_FRAGMENT] = ST_NEW_FS_CONSTANTS;
    f->NewShaderConstants[MESA_SHADER_COMPUTE] = ST_NEW_CS_CONSTANTS;
 
    if (st->has_srgb_enable)
       f->NewFramebufferSRGB = ST_NEW_BLEND;
    else
-      f->NewFramebufferSRGB = ST_NEW_FRAMEBUFFER;
+      f->NewFramebufferSRGB = ST_NEW_FB_STATE;
 
    f->NewWindowRectangles = ST_NEW_WINDOW_RECTANGLES;
    f->NewScissorRect = ST_NEW_SCISSOR;
    f->NewScissorTest = ST_NEW_SCISSOR | ST_NEW_RASTERIZER;
    f->NewAlphaTest = ST_NEW_DSA;
    f->NewBlend = ST_NEW_BLEND;
    f->NewBlendColor = ST_NEW_BLEND; /* TODO: add an atom for blend color */
    f->NewColorMask = ST_NEW_BLEND;
    f->NewDepth = ST_NEW_DSA;
    f->NewLogicOp = ST_NEW_BLEND;
-- 
2.7.4



More information about the mesa-dev mailing list