summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/galahad
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2010-06-22 22:39:53 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2010-06-22 22:49:13 -0700
commitde7b181e99a64cb517a021f00f714c6af9b337ee (patch)
tree38b76d73e6bade554a91a2d61d6494dce37b4805 /src/gallium/drivers/galahad
parent7d551eb03df0a732e9e55dd960afffc6a1525377 (diff)
glhd: Grab is_format_supported warning from r300g.
Diffstat (limited to 'src/gallium/drivers/galahad')
-rw-r--r--src/gallium/drivers/galahad/glhd_screen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/galahad/glhd_screen.c b/src/gallium/drivers/galahad/glhd_screen.c
index 33cf9d22a1..bcc37cb633 100644
--- a/src/gallium/drivers/galahad/glhd_screen.c
+++ b/src/gallium/drivers/galahad/glhd_screen.c
@@ -99,6 +99,10 @@ galahad_screen_is_format_supported(struct pipe_screen *_screen,
struct galahad_screen *glhd_screen = galahad_screen(_screen);
struct pipe_screen *screen = glhd_screen->screen;
+ if (target >= PIPE_MAX_TEXTURE_TYPES) {
+ glhd_warn("Received bogus texture target %d", target);
+ }
+
return screen->is_format_supported(screen,
format,
target,