intel/tools: Fix detection of enabled shader stages.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 10 Nov 2017 23:36:22 +0000 (15:36 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 12 Nov 2017 08:16:40 +0000 (00:16 -0800)
We renamed "Function Enable" to "Enable", which broke our detection
of whether shaders are enabled or not.  So, we'd see a bunch of HS/DS
packets with program offsets of 0, and think that was a valid TCS/TES.

Fixes: c032cae9ff77e (genxml: Rename "Function Enable" to "Enable".)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/aubinator_error_decode.c

index 4035723b87d78e966de3be406abb6eaa23c351df..2322bac839157b72a094deb856d603cfd2818339 100644 (file)
@@ -367,7 +367,7 @@ static void decode(struct gen_spec *spec,
                is_simd8 = strcmp(iter.value, "true") == 0;
             } else if (strcmp(iter.name, "Dispatch Enable") == 0) {
                is_simd8 = strcmp(iter.value, "SIMD8") == 0;
-            } else if (strcmp(iter.name, "Function Enable") == 0) {
+            } else if (strcmp(iter.name, "Enable") == 0) {
                is_enabled = strcmp(iter.value, "true") == 0;
             }
          }