llvmpipe: Recompute the fs shader key when framebuffer varies.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 30 Nov 2012 17:32:29 +0000 (17:32 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 3 Dec 2012 14:02:43 +0000 (14:02 +0000)
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 <sroland@vmware.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/llvmpipe/lp_state_derived.c

index 056e163f074f8d78b90ae5dbb8be897b151149c7..5bb5a7a0b7eeee84dc0c31b903db53e97de31da7 100644 (file)
@@ -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 |