llvmpipe: pass frontfacing param to jit_function() call
authorBrian Paul <brianp@vmware.com>
Mon, 20 Jun 2022 19:57:22 +0000 (13:57 -0600)
committerMarge Bot <emma+marge@anholt.net>
Wed, 27 Jul 2022 22:24:56 +0000 (22:24 +0000)
Instead of 1, in shade_quads_all() and shade_quads_mask().  This fixes
a VMware test (dx10-is-front-face)

Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17561>

src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c

index ede0399..c7356c4 100644 (file)
@@ -115,7 +115,7 @@ shade_quads_all( struct lp_rasterizer_task *task,
    BEGIN_JIT_CALL(state, task);
    variant->jit_function[RAST_WHOLE]( &state->jit_context,
                                       x, y,
-                                      1,
+                                      inputs->frontfacing,
                                       (const float (*)[4])GET_A0(inputs),
                                       (const float (*)[4])GET_DADX(inputs),
                                       (const float (*)[4])GET_DADY(inputs),
@@ -155,7 +155,7 @@ shade_quads_mask(struct lp_rasterizer_task *task,
    BEGIN_JIT_CALL(state, task);
    variant->jit_function[RAST_EDGE_TEST](&state->jit_context,
                                          x, y,
-                                         1,
+                                         inputs->frontfacing,
                                          (const float (*)[4])GET_A0(inputs),
                                          (const float (*)[4])GET_DADX(inputs),
                                          (const float (*)[4])GET_DADY(inputs),