anv: Be more careful about fast-clear colors
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 13 Feb 2018 00:03:28 +0000 (16:03 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 20 Feb 2018 21:49:24 +0000 (13:49 -0800)
commit85d0bec9616bc1ffa8e4ab5e7c5d12ff4e414872
treebcfad1118a8be3f65667da79290ac80da089e9fa
parent4796025ba518baa0e8893337591a3f452a375d94
anv: Be more careful about fast-clear colors

Previously, we just used all the channels regardless of the format.
This is less than ideal because some channels may have undefined values
and this should be ok from the client's perspective.  Even though the
driver should do the correct thing regardless of what is in the
undefined value, it makes things less deterministic.  In particular, the
driver may choose to fast-clear or not based on undefined values.  This
level of nondeterminism is bad.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/vulkan/genX_cmd_buffer.c