summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r300/r300_fs.c6
-rw-r--r--src/mesa/drivers/dri/r300/compiler/r300_fragprog.c2
-rw-r--r--src/mesa/drivers/dri/r300/compiler/r500_fragprog.c2
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_code.h1
4 files changed, 2 insertions, 9 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c
index cf81771bb7..01fd67e536 100644
--- a/src/gallium/drivers/r300/r300_fs.c
+++ b/src/gallium/drivers/r300/r300_fs.c
@@ -169,12 +169,6 @@ static void get_external_state(
state->unit[i].fake_npot = TRUE; */
break;
- case PIPE_TEX_WRAP_CLAMP:
- case PIPE_TEX_WRAP_CLAMP_TO_EDGE:
- case PIPE_TEX_WRAP_CLAMP_TO_BORDER:
- state->unit[i].wrap_mode = RC_WRAP_CLAMP;
- break;
-
case PIPE_TEX_WRAP_MIRROR_REPEAT:
case PIPE_TEX_WRAP_MIRROR_CLAMP:
case PIPE_TEX_WRAP_MIRROR_CLAMP_TO_EDGE:
diff --git a/src/mesa/drivers/dri/r300/compiler/r300_fragprog.c b/src/mesa/drivers/dri/r300/compiler/r300_fragprog.c
index 50360de3a3..b2cb916880 100644
--- a/src/mesa/drivers/dri/r300/compiler/r300_fragprog.c
+++ b/src/mesa/drivers/dri/r300/compiler/r300_fragprog.c
@@ -174,7 +174,7 @@ int r300_transform_TEX(
}
if (compiler->state.unit[inst->U.I.TexSrcUnit].fake_npot &&
- wrapmode != RC_WRAP_NONE && wrapmode != RC_WRAP_CLAMP) {
+ wrapmode != RC_WRAP_NONE) {
if (wrapmode == RC_WRAP_REPEAT) {
inst_rect = rc_insert_new_instruction(c, inst->Prev);
diff --git a/src/mesa/drivers/dri/r300/compiler/r500_fragprog.c b/src/mesa/drivers/dri/r300/compiler/r500_fragprog.c
index 647bc87d0b..295e455d90 100644
--- a/src/mesa/drivers/dri/r300/compiler/r500_fragprog.c
+++ b/src/mesa/drivers/dri/r300/compiler/r500_fragprog.c
@@ -177,7 +177,7 @@ int r500_transform_TEX(
unsigned temp = rc_find_free_temporary(c);
if (compiler->state.unit[inst->U.I.TexSrcUnit].fake_npot &&
- wrapmode != RC_WRAP_NONE && wrapmode != RC_WRAP_CLAMP) {
+ wrapmode != RC_WRAP_NONE) {
if ((inst->U.I.TexSrcTarget == RC_TEXTURE_RECT ||
compiler->state.unit[inst->U.I.TexSrcUnit].non_normalized_coords)) {
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_code.h b/src/mesa/drivers/dri/r300/compiler/radeon_code.h
index 0a20dfe2d1..28bcd1029b 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_code.h
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_code.h
@@ -114,7 +114,6 @@ typedef enum {
*/
typedef enum {
RC_WRAP_NONE = 0,
- RC_WRAP_CLAMP,
RC_WRAP_REPEAT,
RC_WRAP_MIRROR
} rc_wrap_mode;