summaryrefslogtreecommitdiff
path: root/src/radeon_reg.h
diff options
context:
space:
mode:
authorPeter Zubaj <pzubaj at marticonet.sk>2008-02-26 14:26:14 -0500
committerAlex Deucher <alex@samba.(none)>2008-02-26 14:26:14 -0500
commit00ec17ad53d7ad43f19c9b723794ac1b8ef86826 (patch)
treef37273fe3d7eee225057cfc9013daffa13859e5c /src/radeon_reg.h
parent4207793f9b6c891cb17ba715223d2002668885e3 (diff)
R300: Fix clamping and pitch for textured video
Diffstat (limited to 'src/radeon_reg.h')
-rw-r--r--src/radeon_reg.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/radeon_reg.h b/src/radeon_reg.h
index 78b6eed..046c52b 100644
--- a/src/radeon_reg.h
+++ b/src/radeon_reg.h
@@ -4067,6 +4067,17 @@
#define R300_TX_INVALTAGS 0x4100
#define R300_TX_FILTER0_0 0x4400
+# define R300_TX_CLAMP_S(x) (x << 0)
+# define R300_TX_CLAMP_T(x) (x << 3)
+# define R300_TX_CLAMP_R(x) (x << 6)
+# define R300_TX_CLAMP_WRAP 0
+# define R300_TX_CLAMP_MIRROR 1
+# define R300_TX_CLAMP_CLAMP_LAST 2
+# define R300_TX_CLAMP_MIRROR_CLAMP_LAST 3
+# define R300_TX_CLAMP_CLAMP_BORDER 4
+# define R300_TX_CLAMP_MIRROR_CLAMP_BORDER 5
+# define R300_TX_CLAMP_CLAMP_GL 6
+# define R300_TX_CLAMP_MIRROR_CLAMP_GL 7
# define R300_TX_MAG_FILTER_NEAREST (1 << 9)
# define R300_TX_MIN_FILTER_NEAREST (1 << 11)
# define R300_TX_MAG_FILTER_LINEAR (2 << 9)