From: Marek Olšák Date: Wed, 6 Sep 2017 00:53:20 +0000 (+0200) Subject: radeonsi/gfx9: fix interprocess resource sharing on Raven X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=46e7478986b022d5c912a63aacce5025afff8b24;p=mesa.git radeonsi/gfx9: fix interprocess resource sharing on Raven This kinda fragiile, but it at least unbreaks the driver. Reviewed-by: Nicolai Hähnle --- 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