r300: Initialize compiler.max_temp_regs for blits.
authorMichel Dänzer <daenzer@vmware.com>
Wed, 7 Apr 2010 09:21:15 +0000 (11:21 +0200)
committerMichel Dänzer <michel@daenzer.net>
Wed, 7 Apr 2010 09:21:15 +0000 (11:21 +0200)
Blits were broken since commit e41a64591bf1a74465bf0adc7d35c991c4cfb4fe
('r300/compiler: make the max number of fragment shader temporaries
adjustable').

src/mesa/drivers/dri/r300/r300_blit.c

index fa60628a5e00f492efb1e726c981486cc020f164..f6c3a85e51bf66917d3c58b1a31ec92a6ff56bfe 100644 (file)
@@ -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;