summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2010-03-04 15:08:26 +1000
committerDave Airlie <[email protected]>2010-03-04 15:11:42 +1000
commitc27fed58e4979ec950fa4af56eb8b94b21705ac8 (patch)
treebbb3feef7f0e5f02271427fe7337c58f54d64a6d /src/mesa
parente5d0956ca4621f379be9beb104b21a90f207475c (diff)
r300_blit: initialise whole fp structure to 0
at least on the r500 we get a lockup unless I do this, the compiler seems to fail to compile and we just get a null fp. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r300/r300_blit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_blit.c b/src/mesa/drivers/dri/r300/r300_blit.c
index 9637a9b7ad9..f3e4346e02f 100644
--- a/src/mesa/drivers/dri/r300/r300_blit.c
+++ b/src/mesa/drivers/dri/r300/r300_blit.c
@@ -97,6 +97,7 @@ static void create_fragment_program(struct r300_context *r300)
struct r300_fragment_program_compiler compiler;
struct rc_instruction *inst;
+ memset(&compiler, 0, sizeof(struct r300_fragment_program_compiler));
rc_init(&compiler.Base);
inst = rc_insert_new_instruction(&compiler.Base, compiler.Base.Program.Instructions.Prev);