mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
i965: Silence compiler warning about promoted_constants.
We only have a cfg != NULL if we went through one of the paths that set
it, but my compiler doesn't figure that out.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 6411defdcd ("intel/cs: Re-run final NIR optimizations for each SIMD size")
This commit is contained in:
parent
9f89452ea3
commit
d25640c3a3
1 changed files with 1 additions and 1 deletions
|
|
@ -7223,7 +7223,7 @@ brw_compile_cs(const struct brw_compiler *compiler, void *log_data,
|
|||
fs_visitor *v8 = NULL, *v16 = NULL, *v32 = NULL;
|
||||
cfg_t *cfg = NULL;
|
||||
const char *fail_msg = NULL;
|
||||
unsigned promoted_constants;
|
||||
unsigned promoted_constants = 0;
|
||||
|
||||
/* Now the main event: Visit the shader IR and generate our CS IR for it.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue