anv: Predicate fast-clear resolves
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 18 Apr 2017 18:03:42 +0000 (11:03 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sun, 23 Jul 2017 03:12:10 +0000 (20:12 -0700)
commit67027ddf3f3c946faeada9a4220900e064a72024
treebfee4218ddb3fc8aa53c819afe7c0bca0704f4c0
parent8e2729fbb8686cba2a54086e5088a5ca4c41b39d
anv: Predicate fast-clear resolves

Image layouts only let us know that an image *may* be fast-cleared. For
this reason we can end up with redundant resolves. Testing has shown
that such resolves can measurably hurt performance and that predicating
them can avoid the penalty.

v2:
- Introduce additional resolve state management function (Jason Ekstrand).
- Enable easy retrieval of fast clear state fields.
v3: Use more descriptive field enums (Jason)

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_blorp.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c