summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Davy <davyaxel0@gmail.com>2021-03-12 13:38:59 +0100
committerMarge Bot <eric+marge@anholt.net>2021-04-14 08:33:13 +0000
commit787b03d5f6d7e08ad9f52b926a9afc086768f44e (patch)
tree5bdc01231c044d8c0eeab11302adf3fe4edd0d14
parent138615a094a07ceb92c79ce5c78407eb9c060834 (diff)
st/nine: Increase number of constants of vs1_sw
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 <davyaxel0@gmail.com> Acked-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160>
-rw-r--r--src/gallium/frontends/nine/nine_shader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/frontends/nine/nine_shader.c b/src/gallium/frontends/nine/nine_shader.c
index 9720a40d7f5..53924202b00 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;