From 47265e69c84c78a68102fa727aa80d63f25c0d46 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 16 Apr 2010 22:29:19 +0200 Subject: r300/compiler: make ARB_shadow_ambient optional This saves constant register space for r300g, which doesn't need this feature. --- src/mesa/drivers/dri/r300/r300_fragprog_common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/drivers/dri/r300/r300_fragprog_common.c') 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; -- cgit v1.2.3