diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_derived.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_surface.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_derived.c b/src/gallium/drivers/llvmpipe/lp_state_derived.c index c9439c7154c..4015b0439a6 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_derived.c +++ b/src/gallium/drivers/llvmpipe/lp_state_derived.c @@ -228,8 +228,10 @@ update_tgsi_samplers( struct llvmpipe_context *llvmpipe ) } static void -update_culling() +update_culling(struct llvmpipe_context *lp) { + struct lp_setup_context *setup = lp->setup; + if (lp->reduced_api_prim == PIPE_PRIM_TRIANGLES && lp->rasterizer->fill_cw == PIPE_POLYGON_MODE_FILL && lp->rasterizer->fill_ccw == PIPE_POLYGON_MODE_FILL) { @@ -283,7 +285,7 @@ void llvmpipe_update_derived( struct llvmpipe_context *llvmpipe ) } -void llvmpipe_prepare( ) +void llvmpipe_prepare(struct lp_setup_context *setup) { struct llvmpipe_context *lp = setup->llvmpipe; diff --git a/src/gallium/drivers/llvmpipe/lp_state_surface.c b/src/gallium/drivers/llvmpipe/lp_state_surface.c index 06560335d70..bb1396c3ab8 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_surface.c +++ b/src/gallium/drivers/llvmpipe/lp_state_surface.c @@ -82,7 +82,7 @@ llvmpipe_set_framebuffer_state(struct pipe_context *pipe, } if (dirty) { - lp_setup_set_framebuffer( llvmpipe->setup, fb ); + lp_setup_set_framebuffer( lp->setup, fb ); lp->dirty |= LP_NEW_FRAMEBUFFER; } } |