summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/p_format.h
diff options
context:
space:
mode:
authormichal <michal@michal-laptop.(none)>2007-10-27 17:30:23 +0100
committermichal <michal@michal-laptop.(none)>2007-10-27 19:04:19 +0100
commitf16f23b3ab4caf6588ce713fc682aac6e9f808fb (patch)
tree460ae90b5f10948227086a8b327806e7ce8aa6d1 /src/mesa/pipe/p_format.h
parentd8b59ba1775ea730130fa0e2a1f054161d948820 (diff)
Use PIPE_FORMAT in state tracker.
Fix PIPE_FORMAT field encoding. Re-implement st_get_format_info.
Diffstat (limited to 'src/mesa/pipe/p_format.h')
-rw-r--r--src/mesa/pipe/p_format.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/p_format.h b/src/mesa/pipe/p_format.h
index 3046538f12..1cab3c27b2 100644
--- a/src/mesa/pipe/p_format.h
+++ b/src/mesa/pipe/p_format.h
@@ -84,7 +84,7 @@ struct pipe_format_rgbazs
((EXP8) << 26) |\
((TYPE) << 28) )
-#define _PIPE_FORMAT_SWZ( SWZX, SWZY, SWZZ, SWZW ) (((SWZX) << 2) | ((SWZY) << 5) | ((SWZZ) << 8) | ((SWZW) << 11))
+#define _PIPE_FORMAT_SWZ( SWZX, SWZY, SWZZ, SWZW ) (((SWZX) << 0) | ((SWZY) << 3) | ((SWZZ) << 6) | ((SWZW) << 9))
#define _PIPE_FORMAT_RGBAZS_1U( SWZ, SIZE, TYPE )\
_PIPE_FORMAT_RGBAZS( SWZ, SIZE, SIZE, SIZE, SIZE, 0, TYPE )