llvmpipe: add LP_NEW_GS flag for updating vertex info
authorRoland Scheidegger <sroland@vmware.com>
Sat, 27 May 2017 02:34:14 +0000 (04:34 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 27 May 2017 13:49:21 +0000 (15:49 +0200)
The vertex information we compute here is really dependent on the last
stage before FS. It just happened to work most of the time because new
GS tend to come with new VS and/or FS...
(The LP_NEW_GS flag was previously set but never used.)

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_derived.c

index fa9d4fb2fdf29faf6c3bcfffc9551ac05fb80c41..3e75d44dac6a657ab94bab8fb1c1866fcc851434 100644 (file)
@@ -194,6 +194,7 @@ void llvmpipe_update_derived( struct llvmpipe_context *llvmpipe )
    /* This needs LP_NEW_RASTERIZER because of draw_prepare_shader_outputs(). */
    if (llvmpipe->dirty & (LP_NEW_RASTERIZER |
                           LP_NEW_FS |
+                          LP_NEW_GS |
                           LP_NEW_VS))
       compute_vertex_info(llvmpipe);