r600g: don't advertise integer textures without GLSL 1.3

This commit is contained in:
Marek Olšák
2012-02-14 15:04:51 +01:00
parent 4042702591
commit 2c06bcb909
2 changed files with 8 additions and 0 deletions
@@ -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;
+4
View 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;