lavapipe: fix min_vertex_pipeline_param

Fixes: d91a549b67 ("lavapipe: check all vertex-stages")
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33176>
(cherry picked from commit 0f656756ec)
This commit is contained in:
Qiang Yu 2025-01-22 15:38:40 +08:00 committed by Eric Engestrom
parent 1579ff453e
commit 59865a1b1e
2 changed files with 2 additions and 2 deletions

View file

@ -1404,7 +1404,7 @@
"description": "lavapipe: fix min_vertex_pipeline_param",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "d91a549b67f3a13c4763d82e333e50395c300507",
"notes": null

View file

@ -304,7 +304,7 @@ min_vertex_pipeline_param(struct pipe_screen *pscreen, enum pipe_shader_cap para
PIPE_SHADER_CAP_MAX_INSTRUCTIONS))
continue;
val = MAX2(val, pscreen->get_shader_param(pscreen, i, param));
val = MIN2(val, pscreen->get_shader_param(pscreen, i, param));
}
return val;
}