radv: fix stencil only clears.
authorDave Airlie <airlied@redhat.com>
Tue, 2 May 2017 05:29:28 +0000 (15:29 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 2 May 2017 20:31:20 +0000 (06:31 +1000)
commit3c730639740f9b1243e95d06e6608cb54649be9a
treee995659a6f3a42bd3a740879407bc2e73a995e14
parentb539335e50b355854202c4b1b42aa4ddbe9289fa
radv: fix stencil only clears.

If we are clearing stencil only, we still need to provide a
a valid Z output from the vertex shader, we can't rely
on the depth clear value having any meaning, as we use this
for the position output, and it could get clipped, so we
don't end up clearing anything.

Fixes:
dEQP-VK.renderpass.simple.stencil
since I added S8 support.

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