OSDN Git Service

AMDGPU: Fix an interaction between WQM and polygon stippling
authorNicolai Haehnle <nhaehnle@gmail.com>
Sat, 3 Sep 2016 12:26:32 +0000 (12:26 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sat, 3 Sep 2016 12:26:32 +0000 (12:26 +0000)
commitc280d74837d8239fc6cf567576b766ca3f4844c5
tree841d884266dba0b445a65a69e3b9f63f45d2517c
parent6acb49abca7ea4d2845bc3ac980e2680b256ff41
AMDGPU: Fix an interaction between WQM and polygon stippling

Summary:
This fixes a rare bug in polygon stippling with non-monolithic pixel shaders.

The underlying problem is as follows: the prolog part contains the polygon
stippling sequence, i.e. a kill. The main part then enables WQM based on the
_reduced_ exec mask, effectively undoing most of the polygon stippling.

Since we cannot know whether polygon stippling will be used, the main part
of a non-monolithic shader must always return to exact mode to fix this
problem.

Reviewers: arsenm, tstellarAMD, mareko

Subscribers: arsenm, llvm-commits, kzhuravl

Differential Revision: https://reviews.llvm.org/D23131

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280589 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInstructions.td
lib/Target/AMDGPU/SIWholeQuadMode.cpp
test/CodeGen/AMDGPU/wqm.ll