diff options
author | Bas Nieuwenhuizen <[email protected]> | 2016-11-29 08:54:05 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2016-11-29 20:13:28 +0100 |
commit | b8c9ce4459af5857c3f68f4bd6a3e33357e22337 (patch) | |
tree | 6f013dead11411ac8660becea4a4037cca184099 /src/amd/common | |
parent | 029e8ff81c65c2e0562be4a5d93fe83a9df49233 (diff) |
ac/nir: Fix accessing an unitialized value.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index c9b0106e48f..d9eef5749e0 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -3361,7 +3361,8 @@ static void visit_tex(struct nir_to_llvm_context *ctx, nir_tex_instr *instr) unsigned dmask = 0xf; LLVMValueRef address[16]; LLVMValueRef coords[5]; - LLVMValueRef coord = NULL, lod = NULL, comparitor = NULL, bias, offsets = NULL; + LLVMValueRef coord = NULL, lod = NULL, comparitor = NULL; + LLVMValueRef bias = NULL, offsets = NULL; LLVMValueRef res_ptr, samp_ptr, fmask_ptr = NULL, sample_index = NULL; LLVMValueRef ddx = NULL, ddy = NULL; LLVMValueRef derivs[6]; |