OSDN Git Service

radeonsi: only set dual source blending for MRT0
authorMarek Olšák <marek.olsak@amd.com>
Tue, 9 Aug 2016 10:43:13 +0000 (12:43 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 1 Sep 2016 09:06:23 +0000 (10:06 +0100)
commit659d9f189cac0665f2632a5b558986fc71563a34
tree4accba4b0d2237cb30caf8c51ea04be7889a8375
parent1959b57310afc6138ac6587fa161d300afd22bfb
radeonsi: only set dual source blending for MRT0

This is the proper fix for Overlord and Witcher 2 hangs.

The hang condition is that 1 app must write to MRT0 and MRT1 from a pixel
shader while MRT1 is disabled in CB_TARGET_MASK (does this generate
unflushable pixel quads? I don't know), and another app (e.g. Glamor)
must enable dual source blending in both MRT0 and MRT1. The hw gets
confused, which leads to corruption and hangs.

Cc: 12.0 11.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
(cherry picked from commit 947e0614d091c260651e4f3d6209bd6bcc2cfa0d)
src/gallium/drivers/radeonsi/si_state.c