diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-02-14 23:57:46 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-04-05 07:09:45 +0200 |
commit | e41a64591bf1a74465bf0adc7d35c991c4cfb4fe (patch) | |
tree | c12c0d1c717c4ed57c4ea8ae1c462b994a476cae /src/mesa/drivers/dri/r300/r300_fragprog_common.c | |
parent | 4e949271c25ccc5a06fbbbe912b0b43b75d1d169 (diff) |
r300/compiler: make the max number of fragment shader temporaries adjustable
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_fragprog_common.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_fragprog_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_fragprog_common.c b/src/mesa/drivers/dri/r300/r300_fragprog_common.c index 0646da4624..ba84122956 100644 --- a/src/mesa/drivers/dri/r300/r300_fragprog_common.c +++ b/src/mesa/drivers/dri/r300/r300_fragprog_common.c @@ -220,6 +220,7 @@ static void translate_fragment_program(GLcontext *ctx, struct r300_fragment_prog compiler.code = &fp->code; compiler.state = fp->state; compiler.is_r500 = (r300->radeon.radeonScreen->chip_family >= CHIP_FAMILY_RV515) ? GL_TRUE : GL_FALSE; + compiler.max_temp_regs = (compiler.is_r500) ? 128 : 32; compiler.OutputDepth = FRAG_RESULT_DEPTH; memset(compiler.OutputColor, 0, 4 * sizeof(unsigned)); compiler.OutputColor[0] = FRAG_RESULT_COLOR; |