diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-05-26 04:18:27 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-05-26 04:47:26 +0200 |
commit | 5c067a63040cc66f0320f30482529a4ff1bd3811 (patch) | |
tree | 0dc371d1dc23ad42a8f5c361acfabd388afbad41 /src/mesa/drivers/dri/r300/r300_fragprog_common.c | |
parent | f2582da3bb72b06d7a751537898f752e110857c7 (diff) |
r300/compiler: move hardware caps to the radeon_compiler base struct
Needed for vertex shaders too.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_fragprog_common.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_fragprog_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_fragprog_common.c b/src/mesa/drivers/dri/r300/r300_fragprog_common.c index e678a42ca2..7be2f74b5b 100644 --- a/src/mesa/drivers/dri/r300/r300_fragprog_common.c +++ b/src/mesa/drivers/dri/r300/r300_fragprog_common.c @@ -220,8 +220,8 @@ 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.Base.is_r500 = (r300->radeon.radeonScreen->chip_family >= CHIP_FAMILY_RV515) ? GL_TRUE : GL_FALSE; + compiler.Base.max_temp_regs = (compiler.Base.is_r500) ? 128 : 32; compiler.OutputDepth = FRAG_RESULT_DEPTH; memset(compiler.OutputColor, 0, 4 * sizeof(unsigned)); compiler.OutputColor[0] = FRAG_RESULT_COLOR; @@ -242,7 +242,7 @@ static void translate_fragment_program(GLcontext *ctx, struct r300_fragment_prog r3xx_compile_fragment_program(&compiler); - if (compiler.is_r500) { + if (compiler.Base.is_r500) { /* We need to support the non-KMS DRM interface, which * artificially limits the number of instructions and * constants which are available to us. |