From 46e7478986b022d5c912a63aacce5025afff8b24 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 6 Sep 2017 02:53:20 +0200 Subject: [PATCH] radeonsi/gfx9: fix interprocess resource sharing on Raven MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This kinda fragiile, but it at least unbreaks the driver. Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeon/r600_buffer_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c index 4f5e17d5c89..f35bc2c813b 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -171,7 +171,9 @@ void r600_init_resource_fields(struct r600_common_screen *rscreen, * processes. */ if (res->b.b.target == PIPE_BUFFER || res->b.b.nr_samples >= 2 || - rtex->surface.micro_tile_mode != RADEON_MICRO_MODE_DISPLAY) + (rtex->surface.micro_tile_mode != RADEON_MICRO_MODE_DISPLAY && + /* Raven doesn't use display micro mode for 32bpp, so check this: */ + !(res->b.b.bind & PIPE_BIND_SCANOUT))) res->flags |= RADEON_FLAG_NO_INTERPROCESS_SHARING; /* If VRAM is just stolen system memory, allow both VRAM and -- 2.30.2