freedreno: Stop reporting max_const in shader-db.
authorEric Anholt <eric@anholt.net>
Wed, 5 Jun 2019 22:00:57 +0000 (15:00 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 22 Jun 2019 00:14:43 +0000 (17:14 -0700)
We end up uploading constlen regardless, so max_const would only get
you slightly improved granularity in const usage in comparison.

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_shader.c
src/gallium/drivers/freedreno/ir3/ir3_gallium.c

index 610ae655a83c1e65ea2817cd6a00c995e3eabfd4..228c7609f505d59da849c6a689ac70c73ed51d9d 100644 (file)
@@ -417,9 +417,7 @@ ir3_shader_disasm(struct ir3_shader_variant *so, uint32_t *bin, FILE *out)
                        so->info.max_half_reg + 1,
                        so->info.max_reg + 1);
 
-       fprintf(out, "; %d const, %u constlen\n",
-                       so->info.max_const + 1,
-                       so->constlen);
+       fprintf(out, "; %u constlen\n", so->constlen);
 
        fprintf(out, "; %u (ss), %u (sy)\n", so->info.ss, so->info.sy);
 
index 4a7d3e8dbfdd512765380a0314167fd2e2a5d97b..35693f97c3b5e1160a89bb6972abd0d3ecfe3687 100644 (file)
@@ -52,7 +52,7 @@ dump_shader_info(struct ir3_shader_variant *v, bool binning_pass,
 
        pipe_debug_message(debug, SHADER_INFO,
                        "%s%s shader: %u inst, %u dwords, "
-                       "%u half, %u full, %u const, %u constlen, "
+                       "%u half, %u full, %u constlen, "
                        "%u (ss), %u (sy), %d max_sun, %d loops\n",
                        binning_pass ? "B" : "",
                        ir3_shader_stage(v->shader),
@@ -60,7 +60,6 @@ dump_shader_info(struct ir3_shader_variant *v, bool binning_pass,
                        v->info.sizedwords,
                        v->info.max_half_reg + 1,
                        v->info.max_reg + 1,
-                       v->info.max_const + 1,
                        v->constlen,
                        v->info.ss, v->info.sy,
                        v->max_sun, v->loops);