From 0c135a773fafaf6707fb2cf6fff5d0d95727ea2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 29 Jun 2016 11:19:58 +0200 Subject: [PATCH] radeonsi: don't advertise multisample shader images MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 54febce4226..cec5e84ad82 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -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: -- 2.30.2