aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_screen.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2009-10-26 01:46:21 +0100
committerJoakim Sindholt <[email protected]>2009-10-26 02:07:26 +0100
commit827002f5ff990f8676385583275d6b8090abfb7a (patch)
tree328845b30f14bc54240835fadbf0672fb84a5338 /src/gallium/drivers/r300/r300_screen.c
parent3a49497f102f2b64a8755d3cf65b7c0386e95aac (diff)
r300g: add cubemap support
Also, set a pitch for rectangles only.
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.c')
-rw-r--r--src/gallium/drivers/r300/r300_screen.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index f581f0ca091..6eaf35bd4b3 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -277,14 +277,10 @@ static boolean r300_is_format_supported(struct pipe_screen* pscreen,
case PIPE_TEXTURE_1D: /* handle 1D textures as 2D ones */
case PIPE_TEXTURE_2D:
case PIPE_TEXTURE_3D:
+ case PIPE_TEXTURE_CUBE:
return check_tex_format(format, tex_usage,
r300_screen(pscreen)->caps->is_r500);
- case PIPE_TEXTURE_CUBE:
- debug_printf("r300: Implementation error: Unsupported format "
- "target: %d\n", target);
- break;
-
default:
debug_printf("r300: Fatal: This is not a format target: %d\n",
target);