From 099933f00415707e948cae858d5c0dfcbb336536 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 5 May 2026 12:43:38 -0400 Subject: [PATCH] llvmpipe: always set view_index for linear rasterizer if this is unset, the view index is garbage and any shader accessing it will read garbage this is the source of all lavapipe flakes. cc: mesa-stable Reviewed-by: Konstantin Seurer Part-of: --- src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c b/src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c index 189668a9c2f..6b4e062979a 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c +++ b/src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c @@ -103,6 +103,7 @@ shade_quads(struct lp_rasterizer_task *task, assert(!variant->key.depth.enabled); /* Propagate non-interpolated raster state */ + task->thread_data.raster_state.view_index = inputs->view_index; task->thread_data.raster_state.viewport_index = inputs->viewport_index; /* run shader on 4x4 block */