summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-02-14 23:57:46 +0100
committerMarek Olšák <[email protected]>2010-04-05 07:09:45 +0200
commite41a64591bf1a74465bf0adc7d35c991c4cfb4fe (patch)
treec12c0d1c717c4ed57c4ea8ae1c462b994a476cae /src/gallium/drivers
parent4e949271c25ccc5a06fbbbe912b0b43b75d1d169 (diff)
r300/compiler: make the max number of fragment shader temporaries adjustable
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r300/r300_fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c
index e23fef8c9f7..116bb80007d 100644
--- a/src/gallium/drivers/r300/r300_fs.c
+++ b/src/gallium/drivers/r300/r300_fs.c
@@ -169,6 +169,7 @@ static void r300_translate_fragment_shader(
compiler.code = &shader->code;
compiler.state = shader->compare_state;
compiler.is_r500 = r300_screen(r300->context.screen)->caps->is_r500;
+ compiler.max_temp_regs = compiler.is_r500 ? 128 : 32;
compiler.AllocateHwInputs = &allocate_hardware_inputs;
compiler.UserData = &fs->inputs;