anv/cmd_buffer: Initalize the clear color struct for CNL+
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 24 Oct 2018 21:50:32 +0000 (14:50 -0700)
committerNanley Chery <nanleychery@gmail.com>
Fri, 7 Jun 2019 18:43:06 +0000 (18:43 +0000)
commitb4198e792c037dccb4d433abc1368bd8cc8d22ee
tree80d7a46acffcf6ba40982a984d87b2fe995b00fa
parent87173ded6e26ac791fc7d71184c560ed9b747817
anv/cmd_buffer: Initalize the clear color struct for CNL+

On CNL+, the clear color struct is composed of RGBA channel values and
fields which are either reserved by the HW or used to control
fast-clears. Currently anv initializes the channel values to zero and
allows the other fields to be undefined.

Satisfy the MBZ field requirements by removing an optimization that
doesn't hold true for CNL+ and pulling in the number of dwords to
initialize from ISL.

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/genX_cmd_buffer.c