r500: for rectangular textures set to unscaled coordinates.
authorDave Airlie <airlied@redhat.com>
Wed, 7 May 2008 05:16:27 +0000 (15:16 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 7 May 2008 07:48:17 +0000 (17:48 +1000)
src/mesa/drivers/dri/r300/r500_fragprog.c

index ed14c93..f9ef582 100644 (file)
@@ -231,6 +231,10 @@ static void emit_tex(struct r500_fragment_program *fp,
 
        fp->inst[counter].inst1 = fpi->TexSrcUnit
                | R500_TEX_SEM_ACQUIRE | R500_TEX_IGNORE_UNCOVERED;
+       
+       if (fpi->TexSrcTarget == TEXTURE_RECT_INDEX)
+               fp->inst[counter].inst1 |= R500_TEX_UNSCALED;
+
        switch (opcode) {
        case OPCODE_TEX:
                fp->inst[counter].inst1 |= R500_TEX_INST_LD;