glhd: Grab is_format_supported warning from r300g.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 23 Jun 2010 05:39:53 +0000 (22:39 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 23 Jun 2010 05:49:13 +0000 (22:49 -0700)
src/gallium/drivers/galahad/glhd_screen.c
src/gallium/drivers/r300/r300_screen.c

index 33cf9d22a1fe890a10001614e569e2f0e03f4cb5..bcc37cb633a7afbdb842afd8a7e5fdcb33f572b9 100644 (file)
@@ -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,
index 8f7c96b829c967ac96f4503e024fd2e0423bd3c9..d3d36a782c5652aabec3c1228bcc47c22693e4fe 100644 (file)
@@ -269,12 +269,6 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
                             format == PIPE_FORMAT_R16G16B16_FLOAT ||
                             format == PIPE_FORMAT_R16G16B16A16_FLOAT;
 
-    if (target >= PIPE_MAX_TEXTURE_TYPES) {
-        fprintf(stderr, "r300: Implementation error: Received bogus texture "
-            "target %d in %s\n", target, __FUNCTION__);
-        return FALSE;
-    }
-
     switch (sample_count) {
         case 0:
         case 1: