[Mesa-dev] [PATCH 1/4] r600g, radeonsi: force VRAM placement for DRI2 buffers
Michel Dänzer
michel at daenzer.net
Sun Feb 2 19:13:23 PST 2014
On Sam, 2014-02-01 at 15:08 +0100, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
> src/gallium/drivers/radeon/r600_texture.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
> index f80a6a2..434a651 100644
> --- a/src/gallium/drivers/radeon/r600_texture.c
> +++ b/src/gallium/drivers/radeon/r600_texture.c
> @@ -668,7 +668,7 @@ r600_texture_create_object(struct pipe_screen *screen,
> } else {
> resource->buf = buf;
> resource->cs_buf = rscreen->ws->buffer_get_cs_handle(buf);
> - resource->domains = RADEON_DOMAIN_GTT | RADEON_DOMAIN_VRAM;
> + resource->domains = RADEON_DOMAIN_VRAM;
This will force all textures read by a compositor using OpenGL to VRAM
as well. I think we need to manage the domains separately for reads and
writes.
The other patches in the series look good to me.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list