OSDN Git Service

radv: fix stencil only clears.
authorDave Airlie <airlied@redhat.com>
Tue, 2 May 2017 05:29:28 +0000 (15:29 +1000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 10 May 2017 10:26:17 +0000 (11:26 +0100)
commit9b808c5748ff162be8f3cf2958c7c5ecb5436b25
tree6620fdea940c11d8243ffed6e3ae88b9dee14ba6
parent9105e36765baaf242836da95d2e44bdc3ef04233
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>
(cherry picked from commit 3c730639740f9b1243e95d06e6608cb54649be9a)
src/amd/vulkan/radv_meta_clear.c