[Mesa-dev] [PATCH 2/2] radeonsi: don't make scanout resources linear except for cursors

Michel Dänzer michel at daenzer.net
Mon Aug 12 07:37:26 PDT 2013


On Sam, 2013-08-10 at 00:23 +0200, Marek Olšák wrote:
> The surface allocator understands the scanout flag just fine.
> 
> This seems to improve performance for Ubuntu Unity on top of st/xorg
> and it fixes the cursor.
> ---
>  src/gallium/drivers/radeonsi/r600_texture.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gallium/drivers/radeonsi/r600_texture.c b/src/gallium/drivers/radeonsi/r600_texture.c
> index ee8ee14..8e01b14 100644
> --- a/src/gallium/drivers/radeonsi/r600_texture.c
> +++ b/src/gallium/drivers/radeonsi/r600_texture.c
> @@ -515,7 +515,7 @@ struct pipe_resource *si_texture_create(struct pipe_screen *screen,
>  	int r;
>  
>  	if (!(templ->flags & R600_RESOURCE_FLAG_TRANSFER) &&
> -	    !(templ->bind & PIPE_BIND_SCANOUT)) {
> +	    !(templ->bind & PIPE_BIND_CURSOR)) {
>  		if (templ->flags & R600_RESOURCE_FLAG_FORCE_TILING ||
>  		    templ->nr_samples > 1) {
>  			array_mode = V_009910_ARRAY_2D_TILED_THIN1;

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer



More information about the mesa-dev mailing list