OSDN Git Service

radv: emit correct last export when Z/stencil export is enabled
authorDave Airlie <airlied@redhat.com>
Tue, 8 Nov 2016 06:22:39 +0000 (16:22 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Nov 2016 20:05:03 +0000 (06:05 +1000)
commitbafc75b4370bfbec0c91ff6bb4d4972fb37bb22a
tree0e425eaada5ca684a5d2a1a44ac774d1734a0394
parentbdd48e47c094c03cd0646d1b69af0a95257c6793
radv: emit correct last export when Z/stencil export is enabled

I was getting a random GPU hang in the renderpass simple tests,
it turns out sometimes radv emitted the wrong thing "last".

This fixes the logic to emit Z/stencil last if they occur,
and not mark a color output as last. Also this relies on the
Z/STENCIL being the first two fragment outputs, which they are
so yay.

Fixes: dEQP-VK.renderpass.simple.color_depth (random hangs)
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c