summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/r600_texture.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-02-10 01:25:54 +0100
committerMarek Olšák <[email protected]>2014-04-09 01:45:16 +0200
commit4a5519f1e019dbf1103e4f3abe0a695637a87518 (patch)
treef90fb4e2a201162e9cfbabaf1867961ccbbc1c1e /src/gallium/drivers/radeon/r600_texture.c
parent5f7faff61bc3ebe80f262fac6f58225d8005631b (diff)
r600g,radeonsi: set correct initial domain for shared resources
Diffstat (limited to 'src/gallium/drivers/radeon/r600_texture.c')
-rw-r--r--src/gallium/drivers/radeon/r600_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index 3dfddca8b1c..30610a2db65 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -640,7 +640,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 = rscreen->ws->buffer_get_initial_domain(resource->cs_buf);
}
if (rtex->cmask.size) {