[Mesa-dev] [PATCH] radeonsi: re-enable PBO ReadPixels acceleration

Nicolai Hähnle nhaehnle at gmail.com
Tue Jun 7 19:57:51 UTC 2016


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

On 07.06.2016 21:39, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> disabled by 4f1cccf570112f93265a4cace504eb763fa8f73e
> ---
>   src/gallium/drivers/radeonsi/si_state.c | 9 ++++++---
>   1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
> index 6c879f3..e99d307 100644
> --- a/src/gallium/drivers/radeonsi/si_state.c
> +++ b/src/gallium/drivers/radeonsi/si_state.c
> @@ -1784,13 +1784,16 @@ boolean si_is_format_supported(struct pipe_screen *screen,
>   		}
>   	}
>
> -	if (usage & PIPE_BIND_SAMPLER_VIEW) {
> +	if (usage & (PIPE_BIND_SAMPLER_VIEW |
> +		     PIPE_BIND_SHADER_IMAGE)) {
>   		if (target == PIPE_BUFFER) {
>   			if (si_is_vertex_format_supported(screen, format))
> -				retval |= PIPE_BIND_SAMPLER_VIEW;
> +				retval |= usage & (PIPE_BIND_SAMPLER_VIEW |
> +						   PIPE_BIND_SHADER_IMAGE);
>   		} else {
>   			if (si_is_sampler_format_supported(screen, format))
> -				retval |= PIPE_BIND_SAMPLER_VIEW;
> +				retval |= usage & (PIPE_BIND_SAMPLER_VIEW |
> +						   PIPE_BIND_SHADER_IMAGE);
>   		}
>   	}
>
>


More information about the mesa-dev mailing list