diff options
author | Marek Olšák <[email protected]> | 2010-04-16 22:29:19 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-04-16 22:35:56 +0200 |
commit | 47265e69c84c78a68102fa727aa80d63f25c0d46 (patch) | |
tree | 5c474d168f1513c4c01e941cc329a2bf0a5e6b1e /src/mesa/drivers/dri/r300/r300_blit.c | |
parent | 862d014ba91f0b959465a48005e94f530f0374a5 (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_blit.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_blit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_blit.c b/src/mesa/drivers/dri/r300/r300_blit.c index f6c3a85e51b..0865a456443 100644 --- a/src/mesa/drivers/dri/r300/r300_blit.c +++ b/src/mesa/drivers/dri/r300/r300_blit.c @@ -117,6 +117,7 @@ static void create_fragment_program(struct r300_context *r300) compiler.Base.Program.InputsRead = (1 << FRAG_ATTRIB_TEX0); compiler.OutputColor[0] = FRAG_RESULT_COLOR; compiler.OutputDepth = FRAG_RESULT_DEPTH; + compiler.enable_shadow_ambient = GL_TRUE; 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; |