diff options
author | Marek Olšák <[email protected]> | 2015-03-17 17:47:17 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-03-18 12:04:27 +0100 |
commit | a984abdad39df2d8ceb4c46e11f4ce1344c36c86 (patch) | |
tree | 07d2c88d452899863c01c332ca42ab88763a9896 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | 8475526a3842580f00a043bca8f821e14e9f5eb7 (diff) |
radeonsi: increase coords array size for radeon_llvm_emit_prepare_cube_coords
radeon_llvm_emit_prepare_cube_coords uses coords[4] in some cases (TXB2 etc.)
Discovered by Coverity. Reported by Ilia Mirkin.
Cc: 10.5 10.4 <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index de889ed2e4f..4dcf7566af0 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -1572,7 +1572,7 @@ static void tex_fetch_args( const struct tgsi_full_instruction * inst = emit_data->inst; unsigned opcode = inst->Instruction.Opcode; unsigned target = inst->Texture.Texture; - LLVMValueRef coords[4]; + LLVMValueRef coords[5]; LLVMValueRef address[16]; int ref_pos; unsigned num_coords = tgsi_util_get_texture_coord_dim(target, &ref_pos); |