summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-02-14 15:04:51 +0100
committerMarek Olšák <[email protected]>2012-02-14 15:04:51 +0100
commit2c06bcb90982280e82a044b8be83be8fdf5a9590 (patch)
tree289842e51f02c26a60ab43c016ae30e652333d28 /src/gallium/drivers/r600/r600_state.c
parent40427025916e003cfd380c2e30df78ad2bc8fe10 (diff)
r600g: don't advertise integer textures without GLSL 1.3
Diffstat (limited to 'src/gallium/drivers/r600/r600_state.c')
-rw-r--r--src/gallium/drivers/r600/r600_state.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index 0d83fa608fb..4955c82b120 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -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;