mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 08:10:14 +01:00
llvmpipe: silence 'variable may be used uninitialized' warnings
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
42eb3052c3
commit
33122e8a3d
2 changed files with 2 additions and 2 deletions
|
|
@ -532,7 +532,7 @@ lp_build_fetch_rgba_aos(struct gallivm_state *gallivm,
|
|||
util_format_fits_8unorm(format_desc) &&
|
||||
type.width == 8 && type.norm == 1 && type.sign == 0 &&
|
||||
type.fixed == 0 && type.floating == 0) {
|
||||
LLVMValueRef packed, res, chans[4], rgba[4];
|
||||
LLVMValueRef packed, res = NULL, chans[4], rgba[4];
|
||||
LLVMTypeRef dst_vec_type, conv_vec_type;
|
||||
struct lp_type fetch_type, conv_type;
|
||||
struct lp_build_context bld_conv;
|
||||
|
|
|
|||
|
|
@ -2777,7 +2777,7 @@ generate_variant(struct llvmpipe_context *lp,
|
|||
const struct lp_fragment_shader_variant_key *key)
|
||||
{
|
||||
struct lp_fragment_shader_variant *variant;
|
||||
const struct util_format_description *cbuf0_format_desc;
|
||||
const struct util_format_description *cbuf0_format_desc = NULL;
|
||||
boolean fullcolormask;
|
||||
char module_name[64];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue