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 <konstantin.seurer@gmail.com>
(cherry picked from commit 099933f004)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41402>
This commit is contained in:
Mike Blumenkrantz 2026-05-05 12:43:38 -04:00 committed by Eric Engestrom
parent 8a5e136797
commit 197452ea1b
2 changed files with 2 additions and 1 deletions

View file

@ -564,7 +564,7 @@
"description": "llvmpipe: always set view_index for linear rasterizer",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -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 */