Mesa (master): r300-gallium: Fix texture filters.
Corbin Simpson
csimpson at kemper.freedesktop.org
Wed Mar 11 22:23:48 UTC 2009
Module: Mesa
Branch: master
Commit: f78bd5922db220b1b5e21c92e6a0cb78189a77f3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f78bd5922db220b1b5e21c92e6a0cb78189a77f3
Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date: Wed Mar 11 15:09:56 2009 -0700
r300-gallium: Fix texture filters.
---
src/gallium/drivers/r300/r300_state_inlines.h | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/r300/r300_state_inlines.h b/src/gallium/drivers/r300/r300_state_inlines.h
index 4b31834..fd92c71 100644
--- a/src/gallium/drivers/r300/r300_state_inlines.h
+++ b/src/gallium/drivers/r300/r300_state_inlines.h
@@ -217,34 +217,43 @@ static INLINE uint32_t r300_translate_tex_filters(int min, int mag, int mip)
switch (min) {
case PIPE_TEX_FILTER_NEAREST:
retval |= R300_TX_MIN_FILTER_NEAREST;
+ break;
case PIPE_TEX_FILTER_LINEAR:
retval |= R300_TX_MIN_FILTER_LINEAR;
+ break;
case PIPE_TEX_FILTER_ANISO:
retval |= R300_TX_MIN_FILTER_ANISO;
+ break;
default:
- debug_printf("r300: Unknown texture filter %d", min);
+ debug_printf("r300: Unknown texture filter %d\n", min);
break;
}
switch (mag) {
case PIPE_TEX_FILTER_NEAREST:
retval |= R300_TX_MAG_FILTER_NEAREST;
+ break;
case PIPE_TEX_FILTER_LINEAR:
retval |= R300_TX_MAG_FILTER_LINEAR;
+ break;
case PIPE_TEX_FILTER_ANISO:
retval |= R300_TX_MAG_FILTER_ANISO;
+ break;
default:
- debug_printf("r300: Unknown texture filter %d", mag);
+ debug_printf("r300: Unknown texture filter %d\n", mag);
break;
}
switch (mip) {
case PIPE_TEX_MIPFILTER_NONE:
retval |= R300_TX_MIN_FILTER_MIP_NONE;
+ break;
case PIPE_TEX_MIPFILTER_NEAREST:
retval |= R300_TX_MIN_FILTER_MIP_NEAREST;
+ break;
case PIPE_TEX_MIPFILTER_LINEAR:
retval |= R300_TX_MIN_FILTER_MIP_LINEAR;
+ break;
default:
- debug_printf("r300: Unknown texture filter %d", mip);
+ debug_printf("r300: Unknown texture filter %d\n", mip);
break;
}
More information about the mesa-commit
mailing list