From 824fad18b3b295101cce218a249162e67a67c597 Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sat, 22 Apr 2023 15:08:19 +0200 Subject: [PATCH] frontend/nine: Fix shader cap test for POSITIONT This feature is almost never used in programmable shaders so no issue was ever reported. Acked-by: Mike Blumenkrantz Signed-off-by: Axel Davy Part-of: --- src/gallium/frontends/nine/nine_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/nine/nine_shader.c b/src/gallium/frontends/nine/nine_shader.c index cdbe3d2f7e9..7cb878a87ea 100644 --- a/src/gallium/frontends/nine/nine_shader.c +++ b/src/gallium/frontends/nine/nine_shader.c @@ -3686,7 +3686,7 @@ tx_ctor(struct shader_translator *tx, struct pipe_screen *screen, struct nine_sh TGSI_SEMANTIC_TEXCOORD : TGSI_SEMANTIC_GENERIC; tx->wpos_is_sysval = GET_CAP(FS_POSITION_IS_SYSVAL); tx->face_is_sysval_integer = GET_CAP(FS_FACE_IS_INTEGER_SYSVAL); - tx->no_vs_window_space = GET_CAP(VS_WINDOW_SPACE_POSITION); + tx->no_vs_window_space = !GET_CAP(VS_WINDOW_SPACE_POSITION); if (IS_VS) { tx->num_constf_allowed = NINE_MAX_CONST_F;