summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/compiler/radeon_program_tex.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-05-26 04:18:27 +0200
committerMarek Olšák <maraeo@gmail.com>2010-05-26 04:47:26 +0200
commit5c067a63040cc66f0320f30482529a4ff1bd3811 (patch)
tree0dc371d1dc23ad42a8f5c361acfabd388afbad41 /src/mesa/drivers/dri/r300/compiler/radeon_program_tex.c
parentf2582da3bb72b06d7a751537898f752e110857c7 (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/compiler/radeon_program_tex.c')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_program_tex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_program_tex.c b/src/mesa/drivers/dri/r300/compiler/radeon_program_tex.c
index 8336e58d55..9c4b65f4c0 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_program_tex.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_program_tex.c
@@ -237,7 +237,7 @@ int radeonTransformTEX(
rc_wrap_mode wrapmode = compiler->state.unit[inst->U.I.TexSrcUnit].wrap_mode;
/* R300 cannot sample from rectangles. */
- if (!compiler->is_r500) {
+ if (!c->is_r500) {
lower_texture_rect(compiler, inst);
}
@@ -247,7 +247,7 @@ int radeonTransformTEX(
unsigned temp = rc_find_free_temporary(c);
/* For NPOT fallback, we need normalized coordinates anyway. */
- if (compiler->is_r500) {
+ if (c->is_r500) {
lower_texture_rect(compiler, inst);
}
@@ -358,7 +358,7 @@ int radeonTransformTEX(
/* Cannot write texture to output registers (all chips) or with masks (non-r500) */
if (inst->U.I.Opcode != RC_OPCODE_KIL &&
(inst->U.I.DstReg.File != RC_FILE_TEMPORARY ||
- (!compiler->is_r500 && inst->U.I.DstReg.WriteMask != RC_MASK_XYZW))) {
+ (!c->is_r500 && inst->U.I.DstReg.WriteMask != RC_MASK_XYZW))) {
struct rc_instruction * inst_mov = rc_insert_new_instruction(c, inst);
inst_mov->U.I.Opcode = RC_OPCODE_MOV;