From abea6633176f91ebaffe8a268e34afabdb086a48 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 20 Jun 2022 13:57:22 -0600 Subject: [PATCH] llvmpipe: pass frontfacing param to jit_function() call 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 Reviewed-by: Dave Airlie Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c b/src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c index ede03993475..c7356c48604 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c +++ b/src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c @@ -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),