r600g: don't advertise integer textures without GLSL 1.3
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user