diff options
author | Dave Airlie <airlied@redhat.com> | 2008-05-07 15:16:27 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-05-07 17:48:17 +1000 |
commit | 53a7ccc08b286a02f5a276f213cfae31c8e6bf7c (patch) | |
tree | bcecb4956d4cf65d2971c6e7509658840c0aed23 | |
parent | 1da094c9adf49c48a8b61ee7ab5336e8ba3f9e8d (diff) |
r500: for rectangular textures set to unscaled coordinates.
-rw-r--r-- | src/mesa/drivers/dri/r300/r500_fragprog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r500_fragprog.c b/src/mesa/drivers/dri/r300/r500_fragprog.c index ed14c93df7..f9ef582d0a 100644 --- a/src/mesa/drivers/dri/r300/r500_fragprog.c +++ b/src/mesa/drivers/dri/r300/r500_fragprog.c @@ -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; |