anv/image: Add a helper for determining when fast clears are supported
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 20 Nov 2017 17:48:39 +0000 (09:48 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 9 Feb 2018 00:35:31 +0000 (16:35 -0800)
commitb09464db42f31be768cb79ef623ea2ed9398c6a9
tree6324a49815d8a74974b6fe476f01be480fd05346
parent1f7eee6bc15f93d859ba134e9264354c3e79d05d
anv/image: Add a helper for determining when fast clears are supported

v2 (Jason Ekstrand):
 - Return an enum instead of a boolean

v3 (Jason Ekstrand):
 - Return ANV_FAST_CLEAR_NONE instead of false (Topi)
 - Rename ANV_FAST_CLEAR_ANY to ANV_FAST_CLEAR_DEFAULT_VALUE
 - Add documentation for the enum values

v4 (Jason Ekstrand):
 - Remove a dead comment

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h