r600g: don't advertise integer textures without GLSL 1.3
authorMarek Olšák <maraeo@gmail.com>
Tue, 14 Feb 2012 14:04:51 +0000 (15:04 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 14 Feb 2012 14:04:51 +0000 (15:04 +0100)
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c

index b8825163161a9e7581b937557af82c4f8fc24107..42d2e874597928596656ea07231cc893901cb988 100644 (file)
@@ -708,6 +708,10 @@ boolean evergreen_is_format_supported(struct pipe_screen *screen,
        if (!util_format_is_supported(format, usage))
                return FALSE;
 
+       if (util_format_is_pure_integer(format) &&
+           screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL) < 130)
+               return FALSE;
+
        /* Multisample */
        if (sample_count > 1)
                return FALSE;
index 0d83fa608fbb66eb47c53cbd6114d67fe1d75f2e..4955c82b1206060e34a85f09ab7b77de74864955 100644 (file)
@@ -660,6 +660,10 @@ boolean r600_is_format_supported(struct pipe_screen *screen,
        if (!util_format_is_supported(format, usage))
                return FALSE;
 
+       if (util_format_is_pure_integer(format) &&
+           screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL) < 130)
+               return FALSE;
+
        /* Multisample */
        if (sample_count > 1)
                return FALSE;