intel/compiler: mark debug constant as const
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Thu, 30 Jul 2020 14:22:53 +0000 (16:22 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Sep 2020 15:08:01 +0000 (15:08 +0000)
Should quiet Coverity's "'Constant' variable guards dead code".

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6126>

src/intel/compiler/brw_interpolation_map.c

index e7c3919f41f55a4eeb571ba3e35a689f69e0cd9c..a9686e8c59fa68a9cc91bafaff796775285d71bc 100644 (file)
@@ -89,7 +89,7 @@ brw_setup_vue_interpolation(struct brw_vue_map *vue_map, nir_shader *nir,
       }
    }
 
-   bool debug = false;
+   const bool debug = false;
    if (debug) {
       fprintf(stderr, "VUE map:\n");
       for (int i = 0; i < vue_map->num_slots; i++) {