diff options
author | Brian Paul <brianp@vmware.com> | 2011-08-09 09:00:29 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2011-08-09 09:04:10 -0600 |
commit | 32faaea743ca74f4ba29184ef44ebf2c0e962a46 (patch) | |
tree | 60a9ef6516fd071dc3462cf22fe48048367b055e /src/gallium/drivers/r300/compiler | |
parent | 971905bf394e4a6342c206d170abd6661ea38e21 (diff) | |
download | external_mesa3d-32faaea743ca74f4ba29184ef44ebf2c0e962a46.zip external_mesa3d-32faaea743ca74f4ba29184ef44ebf2c0e962a46.tar.gz external_mesa3d-32faaea743ca74f4ba29184ef44ebf2c0e962a46.tar.bz2 |
r300g: silence some warnings about uninitialized variables
Diffstat (limited to 'src/gallium/drivers/r300/compiler')
-rw-r--r-- | src/gallium/drivers/r300/compiler/radeon_program_alu.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/r300/compiler/radeon_program_tex.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/compiler/radeon_program_alu.c b/src/gallium/drivers/r300/compiler/radeon_program_alu.c index 9fc9911..e273bc4 100644 --- a/src/gallium/drivers/r300/compiler/radeon_program_alu.c +++ b/src/gallium/drivers/r300/compiler/radeon_program_alu.c @@ -87,7 +87,7 @@ static struct rc_instruction *emit3( static struct rc_dst_register dstregtmpmask(int index, int mask) { - struct rc_dst_register dst = {0}; + struct rc_dst_register dst = {0, 0, 0}; dst.File = RC_FILE_TEMPORARY; dst.Index = index; dst.WriteMask = mask; diff --git a/src/gallium/drivers/r300/compiler/radeon_program_tex.c b/src/gallium/drivers/r300/compiler/radeon_program_tex.c index 8d16b2c..9d69ebd 100644 --- a/src/gallium/drivers/r300/compiler/radeon_program_tex.c +++ b/src/gallium/drivers/r300/compiler/radeon_program_tex.c @@ -35,7 +35,7 @@ static struct rc_src_register shadow_fail_value(struct r300_fragment_program_compiler *compiler, int tmu) { - struct rc_src_register reg = { 0, }; + struct rc_src_register reg = { 0, 0, 0, 0, 0, 0 }; if (compiler->enable_shadow_ambient) { reg.File = RC_FILE_CONSTANT; @@ -55,7 +55,7 @@ static struct rc_src_register shadow_fail_value(struct r300_fragment_program_com static struct rc_src_register shadow_pass_value(struct r300_fragment_program_compiler *compiler, int tmu) { - struct rc_src_register reg = { 0, }; + struct rc_src_register reg = { 0, 0, 0, 0, 0, 0 }; reg.File = RC_FILE_NONE; reg.Swizzle = combine_swizzles(RC_SWIZZLE_1111, |