[Mesa-dev] [PATCH 1/4] r600g, radeonsi: force VRAM placement for DRI2 buffers
Axel Davy
axel.davy at ens.fr
Mon Feb 3 00:13:35 CET 2014
>From: Marek Ols(ák <marek.olsak at amd.com <http://lists.freedesktop.org/mailman/listinfo/mesa-dev>>
>
>---
> 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;
> }
>
> if (rtex->cmask.size) {
>--
>1.8.3.2
If I understand correctly, this code is always executed after importing a buffer with an handle, a Gem name or a prime fd.
Given the imported buffer can be shared with another card (in the prime fd case), I imagine there are some cases where the buffer must stay in GTT.
What would happen in this case with your patch?
Axel Davy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140203/af46e934/attachment.html>
More information about the mesa-dev
mailing list