summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-12-12 12:58:04 -0700
committerBrian <[email protected]>2007-12-12 12:58:04 -0700
commit77baacbab156cd3859fe50e05c2ff55fe8e27926 (patch)
treea66a23c14a0c6bc5d5e79d0ee6dcc3b9ef6fac1d /src/mesa
parenta308a3e3f8f3eb6ad459c79c36a988c1e33c3f56 (diff)
fix some mistakes in the _PIPE_FORMAT_x #defines
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/p_format.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/pipe/p_format.h b/src/mesa/pipe/p_format.h
index 95a50c18af2..b1772b352f2 100644
--- a/src/mesa/pipe/p_format.h
+++ b/src/mesa/pipe/p_format.h
@@ -150,8 +150,8 @@ static INLINE uint pf_get(pipe_format_rgbazs_t f, uint shift, uint mask)
* Shorthand macro for common format swizzles.
*/
#define _PIPE_FORMAT_R000 _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 )
-#define _PIPE_FORMAT_RG00 _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_A )
-#define _PIPE_FORMAT_RGB0 _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_A )
+#define _PIPE_FORMAT_RG00 _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 )
+#define _PIPE_FORMAT_RGB0 _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_0 )
#define _PIPE_FORMAT_RGBA _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_A )
#define _PIPE_FORMAT_ARGB _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_A, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_B )
#define _PIPE_FORMAT_BGRA _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_A )
@@ -366,7 +366,7 @@ static INLINE char *pf_sprint_name( char *str, uint format )
return str;
}
-static INLINE uint pf_get_component_bits( uint format, uint comp )
+static INLINE uint pf_get_component_bits( enum pipe_format format, uint comp )
{
uint size;
@@ -388,7 +388,7 @@ static INLINE uint pf_get_component_bits( uint format, uint comp )
return size << (pf_exp8(format) * 3);
}
-static INLINE uint pf_get_bits( uint format )
+static INLINE uint pf_get_bits( enum pipe_format format )
{
if (pf_layout(format) == PIPE_FORMAT_LAYOUT_RGBAZS) {
return
@@ -408,7 +408,7 @@ static INLINE uint pf_get_bits( uint format )
}
}
-static INLINE uint pf_get_size( uint format ) {
+static INLINE uint pf_get_size( enum pipe_format format ) {
assert(pf_get_bits(format) % 8 == 0);
return pf_get_bits(format) / 8;
}