summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_fragprog_common.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-04-16 22:29:19 +0200
committerMarek Olšák <maraeo@gmail.com>2010-04-16 22:35:56 +0200
commit47265e69c84c78a68102fa727aa80d63f25c0d46 (patch)
tree5c474d168f1513c4c01e941cc329a2bf0a5e6b1e /src/mesa/drivers/dri/r300/r300_fragprog_common.c
parent862d014ba91f0b959465a48005e94f530f0374a5 (diff)
r300/compiler: make ARB_shadow_ambient optional
This saves constant register space for r300g, which doesn't need this feature.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_fragprog_common.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_fragprog_common.c1
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 ba84122956..2b7c93a957 100644
--- a/src/mesa/drivers/dri/r300/r300_fragprog_common.c
+++ b/src/mesa/drivers/dri/r300/r300_fragprog_common.c
@@ -219,6 +219,7 @@ static void translate_fragment_program(GLcontext *ctx, struct r300_fragment_prog
compiler.code = &fp->code;
compiler.state = fp->state;
+ compiler.enable_shadow_ambient = GL_TRUE;
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;