turnip: fix VkClearValue packing
authorChia-I Wu <olvaffe@gmail.com>
Wed, 13 Feb 2019 18:23:32 +0000 (10:23 -0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 11 Mar 2019 17:02:13 +0000 (10:02 -0700)
commit15319963fa45ae3fa8b6a097fa9ed0b8751807cc
treed72836618e2440464bb95bfc8833ab39ef2a158f
parent6545461041c42022cc66811205339098b4c6973b
turnip: fix VkClearValue packing

Add tu_pack_clear_value to correctly pack VkClearValue according to
VkFormat.  It ignores the component order defined by VkFormat, and
always packs to WZYX order.
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_formats.c
src/freedreno/vulkan/tu_private.h