radv: allow clear merging for depth/stencil with no care stencil
authorDave Airlie <airlied@redhat.com>
Tue, 11 Jul 2017 02:02:09 +0000 (03:02 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 17 Jul 2017 00:16:59 +0000 (01:16 +0100)
commitb86f86f55cef4672f23cb50871c8cec03deecbd6
tree9b6c87a99a3190f8087bf991f62b7cc978dbf4d9
parent373f707fbb01e6c40d991e74a155d13f72b456fe
radv: allow clear merging for depth/stencil with no care stencil

Some of the Sascha Willems demos pick a D32/S8 format for the depth
buffer, then do a LOAD_OP_CLEAR/LOAD_OP_DONT_CARE on it, which means
we don't get to merge the undefined->depth and clear htile transitions.

This add the stencil aspect to the pending clears if there is a depth
clear pending and the stencil aspect is don't care.

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