freedreno/ir3: Drop the max_const on a6xx to 512.
[mesa.git] / src / freedreno / ir3 / ir3_compiler.c
index 366e2008f8b6f9aa8ab5ac085a5927e56e0cd212..76404fd7a52af583be66d261b475297c17e05c1a 100644 (file)
@@ -73,7 +73,10 @@ struct ir3_compiler * ir3_compiler_create(struct fd_device *dev, uint32_t gpu_id
                compiler->unminify_coords = false;
                compiler->txf_ms_with_isaml = false;
                compiler->array_index_add_half = true;
-               compiler->max_const = 1024;
+               /* Some a6xxs can apparently do 640 consts, but not all.  Need to
+                * characterize this better across GPUs
+                */
+               compiler->max_const = 512;
                compiler->const_upload_unit = 4;
        } else {
                /* no special handling for "flat" */