mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
radeon: Initialize variables in radeon_llvm_context_init.
'type' was not fully initialized when calling lp_build_context_init. Fixes "Uninitialized scalar variable" defect reported by Coverity. NOTE: This is a candidate for the stable branches. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
cf37e12024
commit
36e2c7cc1a
1 changed files with 2 additions and 0 deletions
|
|
@ -1175,7 +1175,9 @@ void radeon_llvm_context_init(struct radeon_llvm_context * ctx)
|
|||
/* XXX: We need to revisit this.I think the correct way to do this is
|
||||
* to use length = 4 here and use the elem_bld for everything. */
|
||||
type.floating = TRUE;
|
||||
type.fixed = FALSE;
|
||||
type.sign = TRUE;
|
||||
type.norm = FALSE;
|
||||
type.width = 32;
|
||||
type.length = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue