radeonsi: don't advertise multisample shader images
authorMarek Olšák <marek.olsak@amd.com>
Wed, 29 Jun 2016 09:19:58 +0000 (11:19 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 29 Jun 2016 14:34:22 +0000 (16:34 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index 54febce42261a102b50c6fd2740f9ac4decdec05..cec5e84ad8208cdf7f6abf458c0a338fb1d4d54f 100644 (file)
@@ -1779,6 +1779,9 @@ static boolean si_is_format_supported(struct pipe_screen *screen,
                if (!screen->get_param(screen, PIPE_CAP_TEXTURE_MULTISAMPLE))
                        return false;
 
+               if (usage & PIPE_BIND_SHADER_IMAGE)
+                       return false;
+
                switch (sample_count) {
                case 2:
                case 4: