Module: Mesa
Branch: master
Commit: 46e7478986b022d5c912a63aacce5025afff8b24
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=46e7478986b022d5c912a63aacce5025afff8b24

Author: Marek Olšák <[email protected]>
Date:   Wed Sep  6 02:53:20 2017 +0200

radeonsi/gfx9: fix interprocess resource sharing on Raven

This kinda fragiile, but it at least unbreaks the driver.

Reviewed-by: Nicolai Hähnle <[email protected]>

---

 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 4f5e17d5c8..f35bc2c813 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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to