From c78401564327454e08e0040e5801ce3a5fefcea4 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 27 Jun 2017 20:32:37 +0200 Subject: gallium/radeon: allow suballocating textures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeon/r600_buffer_common.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/radeon/r600_buffer_common.c') diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c index 4bf293daf27..40d763bd9f5 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -184,6 +184,9 @@ void r600_init_resource_fields(struct r600_common_screen *rscreen, if (rscreen->debug_flags & DBG_NO_WC) res->flags &= ~RADEON_FLAG_GTT_WC; + if (res->b.b.bind & PIPE_BIND_SHARED) + res->flags |= RADEON_FLAG_NO_SUBALLOC; + /* Set expected VRAM and GART usage for the buffer. */ res->vram_usage = 0; res->gart_usage = 0; -- cgit v1.2.3