mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
8a5e136797
commit
197452ea1b
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue