projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7a9dc7
)
intel/compiler: mark debug constant as const
author
Marcin Ślusarz
<marcin.slusarz@intel.com>
Thu, 30 Jul 2020 14:22:53 +0000
(16:22 +0200)
committer
Marge 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
patch
|
blob
|
history
diff --git
a/src/intel/compiler/brw_interpolation_map.c
b/src/intel/compiler/brw_interpolation_map.c
index e7c3919f41f55a4eeb571ba3e35a689f69e0cd9c..a9686e8c59fa68a9cc91bafaff796775285d71bc 100644
(file)
--- a/
src/intel/compiler/brw_interpolation_map.c
+++ b/
src/intel/compiler/brw_interpolation_map.c
@@
-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++) {