[Mesa-dev] [PATCH] radeonsi: don't advertise multisample shader images

Nicolai Hähnle nhaehnle at gmail.com
Wed Jun 29 13:57:51 UTC 2016


Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 29.06.2016 11:20, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
>   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 54febce..cec5e84 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:
>


More information about the mesa-dev mailing list