OSDN Git Service

anv/blorp/clear_subpass: Only set surface clear color for fast clears
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 22 Feb 2017 02:28:38 +0000 (18:28 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 23 Feb 2017 20:10:42 +0000 (12:10 -0800)
commit42b10b175d5e8dfb9c4c46edbc306e7fac6bd3ec
treec6c2ac214a2ee1c8bf9bb915c34dad19420d7bcd
parent042cc201f2869bb77773a316729643e8e025f115
anv/blorp/clear_subpass: Only set surface clear color for fast clears

Not all clear colors are valid.  In particular, on Broadwell and
earlier, only 0/1 colors are allowed in surface state.  No CTS tests are
affected outright by this because, apparently, the CTS coverage for
different clear colors is pretty terrible.  However, when multisample
compression is enabled, we do hit it with CTS tests and this commit
prevents regressions when enabling MCS on Broadwell and earlier.

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