radv/meta: move clear color to using push constants
authorDave Airlie <airlied@redhat.com>
Wed, 19 Apr 2017 00:34:37 +0000 (10:34 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 7 May 2017 22:56:45 +0000 (08:56 +1000)
commitb29ea49e8e392155da40338b4dc631539c89af53
treefd877d0602b512714f0e1f1fccdde39762d14577
parent3b85b630ee6df21ce98e2ce60f428857a60c90d7
radv/meta: move clear color to using push constants

The color clear value is uniform and needs only to be emitted from
the frag shader, so just push it down via a push constant,
and remove the vertex buffer completely.

The depth clear value needs to be emitted from the vertex
shader, but is only a single value.

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