radv: don't emit no color formats. (v3)
authorDave Airlie <airlied@redhat.com>
Mon, 27 Mar 2017 19:45:00 +0000 (05:45 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 27 Mar 2017 22:39:14 +0000 (08:39 +1000)
commitb640dfcd0506253231b93c03de7ee393fb0dfc46
tree4f208de3d78f2c28cf976d98b0b80ef9ec35ca50
parentf1f1cb41d0a80230085e63e8de65aa58ff3872da
radv: don't emit no color formats. (v3)

If we had no rasterization, we'd emit SPI color
format as all 0's the hw dislikes this, add the workaround
from radeonsi.

Found while debugging tessellation

v2: handle at pipeline stage, we have to handle
it after we process the fragment shader. (Bas)
v3: simplify even further, remove old fallback.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pipeline.c