From 787b03d5f6d7e08ad9f52b926a9afc086768f44e Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Fri, 12 Mar 2021 13:38:59 +0100 Subject: [PATCH] st/nine: Increase number of constants of vs1_sw MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Wine tests seem to indicate more the 256 should be supported for this case, but I couldn't find the doc for how much it should be. Use the vs >= 2 settings for now. Signed-off-by: Axel Davy Acked-by: Timur Kristóf Part-of: --- src/gallium/frontends/nine/nine_shader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/frontends/nine/nine_shader.c b/src/gallium/frontends/nine/nine_shader.c index 9720a40..5392420 100644 --- a/src/gallium/frontends/nine/nine_shader.c +++ b/src/gallium/frontends/nine/nine_shader.c @@ -3649,7 +3649,8 @@ tx_ctor(struct shader_translator *tx, struct pipe_screen *screen, struct nine_sh tx->num_constb_allowed = NINE_MAX_CONST_B; } - if (info->swvp_on && tx->version.major >= 2) { + if (info->swvp_on) { + /* TODO: The values tx->version.major == 1 */ tx->num_constf_allowed = 8192; tx->num_consti_allowed = 2048; tx->num_constb_allowed = 2048; -- 2.7.4