From 0f656756ec225cbd266e5de6e11f25b49afad64b Mon Sep 17 00:00:00 2001 From: Qiang Yu Date: Wed, 22 Jan 2025 15:38:40 +0800 Subject: [PATCH] lavapipe: fix min_vertex_pipeline_param MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: d91a549b67f ("lavapipe: check all vertex-stages") Reviewed-by: Alyssa Rosenzweig Acked-by: Marek Olšák Part-of: --- src/gallium/frontends/lavapipe/lvp_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c index ed2f796c804..ad76630469a 100644 --- a/src/gallium/frontends/lavapipe/lvp_device.c +++ b/src/gallium/frontends/lavapipe/lvp_device.c @@ -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; }