Commit 765dc9fc authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer
Browse files

r300: Initialize compiler.max_temp_regs for blits.

Blits were broken since commit e41a6459
('r300/compiler: make the max number of fragment shader temporaries
adjustable').
parent 95bfd006
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment