aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorHenri Verbeet <[email protected]>2011-07-05 01:58:46 +0200
committerHenri Verbeet <[email protected]>2011-07-05 01:58:46 +0200
commit4015b5877c9b92433235eb65da3a9b0aa37e5b98 (patch)
tree76e0fd59458afdeed28fa0ccc16f7a26da273c36 /src/gallium/drivers/r600
parent18cdb9c8abfb5d9f009fcb36ab788f48792207e4 (diff)
r600g: Get rid of some unused functions.
Signed-off-by: Henri Verbeet <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/eg_state_inlines.h32
-rw-r--r--src/gallium/drivers/r600/r600_state_inlines.h32
2 files changed, 0 insertions, 64 deletions
diff --git a/src/gallium/drivers/r600/eg_state_inlines.h b/src/gallium/drivers/r600/eg_state_inlines.h
index b5590116e8f..d9f88de7ce9 100644
--- a/src/gallium/drivers/r600/eg_state_inlines.h
+++ b/src/gallium/drivers/r600/eg_state_inlines.h
@@ -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) {
diff --git a/src/gallium/drivers/r600/r600_state_inlines.h b/src/gallium/drivers/r600/r600_state_inlines.h
index 5615dc6dda3..e9479bd846c 100644
--- a/src/gallium/drivers/r600/r600_state_inlines.h
+++ b/src/gallium/drivers/r600/r600_state_inlines.h
@@ -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) {