st/nine: Increase number of constants of vs1_sw
authorAxel Davy <davyaxel0@gmail.com>
Fri, 12 Mar 2021 12:38:59 +0000 (13:38 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Apr 2021 08:33:13 +0000 (08:33 +0000)
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>

src/gallium/frontends/nine/nine_shader.c

index 9720a40..5392420 100644 (file)
@@ -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;