summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2010-04-07 11:21:15 +0200
committerMichel Dänzer <michel@daenzer.net>2010-04-07 11:21:15 +0200
commit765dc9fc32cf9016473726fbf4827c2aa4cec0b1 (patch)
tree8cfbbaef4d5e07befe5483d6bd9e0916c5202013 /src
parent95bfd0067c55859b311feab3109851deb88dbda2 (diff)
r300: Initialize compiler.max_temp_regs for blits.
Blits were broken since commit e41a64591bf1a74465bf0adc7d35c991c4cfb4fe ('r300/compiler: make the max number of fragment shader temporaries adjustable').
Diffstat (limited to 'src')
-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 fa60628a5e0..f6c3a85e51b 100644
--- a/src/mesa/drivers/dri/r300/r300_blit.c
+++ b/src/mesa/drivers/dri/r300/r300_blit.c
@@ -118,6 +118,7 @@ static void create_fragment_program(struct r300_context *r300)
compiler.OutputColor[0] = FRAG_RESULT_COLOR;
compiler.OutputDepth = FRAG_RESULT_DEPTH;
compiler.is_r500 = (r300->radeon.radeonScreen->chip_family >= CHIP_FAMILY_RV515);
+ compiler.max_temp_regs = (compiler.is_r500) ? 128 : 32;
compiler.code = &r300->blit.fp_code;
compiler.AllocateHwInputs = fp_allocate_hw_inputs;