summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/compiler
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-08-09 09:00:29 -0600
committerBrian Paul <brianp@vmware.com>2011-08-09 09:04:10 -0600
commit32faaea743ca74f4ba29184ef44ebf2c0e962a46 (patch)
tree60a9ef6516fd071dc3462cf22fe48048367b055e /src/gallium/drivers/r300/compiler
parent971905bf394e4a6342c206d170abd6661ea38e21 (diff)
downloadexternal_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.c2
-rw-r--r--src/gallium/drivers/r300/compiler/radeon_program_tex.c4
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,