diff options
author | Marek Olšák <marek.olsak@amd.com> | 2016-06-29 11:19:58 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2016-06-29 16:34:22 +0200 |
commit | 0c135a773fafaf6707fb2cf6fff5d0d95727ea2f (patch) | |
tree | 88fac6a2a67ca69e769da0af035514fcac0700a3 | |
parent | eff81cbc81a728e26734a0fb5e8d774dba468e5b (diff) |
radeonsi: don't advertise multisample shader images
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 54febce422..cec5e84ad8 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: |