mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
ac/nir: Fix compiler warning about uninitialized dw_addr.
Even switching the def's condition to be the same chip revision check as the use, the compiler doesn't figure it out. Just NULL-init it. Fixes:ec53e52742("ac/nir: Add ES output to LDS for GFX9.") Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (cherry picked from commit091bff8317)
This commit is contained in:
parent
2e043c9bcf
commit
49f525643a
1 changed files with 1 additions and 1 deletions
|
|
@ -5939,7 +5939,7 @@ handle_es_outputs_post(struct nir_to_llvm_context *ctx,
|
|||
}
|
||||
|
||||
for (unsigned i = 0; i < RADEON_LLVM_MAX_OUTPUTS; ++i) {
|
||||
LLVMValueRef dw_addr;
|
||||
LLVMValueRef dw_addr = NULL;
|
||||
LLVMValueRef *out_ptr = &ctx->nir->outputs[i * 4];
|
||||
int param_index;
|
||||
int length = 4;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue