<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<pre style="white-space: pre-wrap; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">>From: Marek Olšák <<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">marek.olsak at amd.com</a>>
>
>---
> 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
</pre>
</body>
</html>