diff options
author | Corbin Simpson <[email protected]> | 2009-05-16 11:17:05 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-05-16 11:17:05 -0700 |
commit | 08ec7e0d329a72433b427e8167b2c3442d1f53b4 (patch) | |
tree | c09460a7794a3958642f490c6af46d44746e1291 /src/gallium/drivers/r300/r300_screen.c | |
parent | 17b395638b92139feef9beaea4039f76710bb23a (diff) |
r300-gallium: Die on bad texture formats.
Odds are good that we'll die later anyway, so we might as well do it before
we start dancing on random memory.
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_screen.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index ab095028fbc..6fe724cc923 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -232,9 +232,16 @@ static boolean r300_is_format_supported(struct pipe_screen* pscreen, case PIPE_TEXTURE_2D: return check_tex_2d_format(format, r300_screen(pscreen)->caps->is_r500); + case PIPE_TEXTURE_1D: + case PIPE_TEXTURE_3D: + case PIPE_TEXTURE_CUBE: + debug_printf("r300: Implementation error: Unsupported format " + "target: %d\n", target); + break; default: - debug_printf("r300: Warning: Got unknown format target: %d\n", - format); + debug_printf("r300: Fatal: This is not a format target: %d\n", + target); + assert(0); break; } |