r600g: Get rid of some unused functions.
authorHenri Verbeet <hverbeet@gmail.com>
Mon, 4 Jul 2011 23:58:46 +0000 (01:58 +0200)
committerHenri Verbeet <hverbeet@gmail.com>
Mon, 4 Jul 2011 23:58:46 +0000 (01:58 +0200)
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
src/gallium/drivers/r600/eg_state_inlines.h
src/gallium/drivers/r600/r600_state_inlines.h

index b5590116e8f816ce568440f9b2e68a2468b07bb6..d9f88de7ce9d14aad91b26716105c1230ca9424e 100644 (file)
@@ -215,38 +215,6 @@ static inline unsigned r600_tex_compare(unsigned compare)
        }
 }
 
-static inline unsigned r600_tex_swizzle(unsigned swizzle)
-{
-       switch (swizzle) {
-       case PIPE_SWIZZLE_RED:
-               return V_030010_SQ_SEL_X;
-       case PIPE_SWIZZLE_GREEN:
-               return V_030010_SQ_SEL_Y;
-       case PIPE_SWIZZLE_BLUE:
-               return V_030010_SQ_SEL_Z;
-       case PIPE_SWIZZLE_ALPHA:
-               return V_030010_SQ_SEL_W;
-       case PIPE_SWIZZLE_ZERO:
-               return V_030010_SQ_SEL_0;
-       default:
-       case PIPE_SWIZZLE_ONE:
-               return V_030010_SQ_SEL_1;
-       }
-}
-
-static inline unsigned r600_format_type(unsigned format_type)
-{
-       switch (format_type) {
-       default:
-       case UTIL_FORMAT_TYPE_UNSIGNED:
-               return V_030010_SQ_FORMAT_COMP_UNSIGNED;
-       case UTIL_FORMAT_TYPE_SIGNED:
-               return V_030010_SQ_FORMAT_COMP_SIGNED;
-       case UTIL_FORMAT_TYPE_FIXED:
-               return V_030010_SQ_FORMAT_COMP_UNSIGNED_BIASED;
-       }
-}
-
 static inline unsigned r600_tex_dim(unsigned dim)
 {
        switch (dim) {
index 5615dc6dda33726df1c5b50209b1b789c6e48394..e9479bd846cef484565272ea18c526c3add09ad9 100644 (file)
@@ -215,38 +215,6 @@ static inline unsigned r600_tex_compare(unsigned compare)
        }
 }
 
-static inline unsigned r600_tex_swizzle(unsigned swizzle)
-{
-       switch (swizzle) {
-       case PIPE_SWIZZLE_RED:
-               return V_038010_SQ_SEL_X;
-       case PIPE_SWIZZLE_GREEN:
-               return V_038010_SQ_SEL_Y;
-       case PIPE_SWIZZLE_BLUE:
-               return V_038010_SQ_SEL_Z;
-       case PIPE_SWIZZLE_ALPHA:
-               return V_038010_SQ_SEL_W;
-       case PIPE_SWIZZLE_ZERO:
-               return V_038010_SQ_SEL_0;
-       default:
-       case PIPE_SWIZZLE_ONE:
-               return V_038010_SQ_SEL_1;
-       }
-}
-
-static inline unsigned r600_format_type(unsigned format_type)
-{
-       switch (format_type) {
-       default:
-       case UTIL_FORMAT_TYPE_UNSIGNED:
-               return V_038010_SQ_FORMAT_COMP_UNSIGNED;
-       case UTIL_FORMAT_TYPE_SIGNED:
-               return V_038010_SQ_FORMAT_COMP_SIGNED;
-       case UTIL_FORMAT_TYPE_FIXED:
-               return V_038010_SQ_FORMAT_COMP_UNSIGNED_BIASED;
-       }
-}
-
 static inline unsigned r600_tex_dim(unsigned dim)
 {
        switch (dim) {