From: José Fonseca Date: Fri, 30 Nov 2012 17:32:29 +0000 (+0000) Subject: llvmpipe: Recompute the fs shader key when framebuffer varies. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0bc6ec238bad7908b362355f668ea513e14a75b5;p=mesa.git llvmpipe: Recompute the fs shader key when framebuffer varies. The fs shader now depends on the color buffer formats. The shader key was extended to accommodate this, but llvmpipe_update_derived needs to be updated to check the framebuffer dirty flag. This fixes bug 57674. Reviewed-by: Roland Scheidegger Reviewed-by: Dave Airlie --- diff --git a/src/gallium/drivers/llvmpipe/lp_state_derived.c b/src/gallium/drivers/llvmpipe/lp_state_derived.c index 056e163f074..5bb5a7a0b7e 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_derived.c +++ b/src/gallium/drivers/llvmpipe/lp_state_derived.c @@ -145,6 +145,7 @@ void llvmpipe_update_derived( struct llvmpipe_context *llvmpipe ) compute_vertex_info( llvmpipe ); if (llvmpipe->dirty & (LP_NEW_FS | + LP_NEW_FRAMEBUFFER | LP_NEW_BLEND | LP_NEW_SCISSOR | LP_NEW_DEPTH_STENCIL_ALPHA |