anv/cmd_buffer: Move the color portion of clear_subpass into begin_subpass
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 21 Nov 2017 21:30:49 +0000 (13:30 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 20 Feb 2018 21:49:24 +0000 (13:49 -0800)
commit1900dd76d049d99f9bf256cccb1dee3a5ec3cb3b
treeb489503b1b0aa07ad579798f536fde8fa778ce21
parent6fb9d6c6f5510a9fb594892228fabb831be1d34c
anv/cmd_buffer: Move the color portion of clear_subpass into begin_subpass

This doesn't really change much now but it will give us more/better
control over clears in the future.  The one interesting functional
change here is that we are now re-emitting 3DSTATE_DEPTH_BUFFERS and
friends for each clear.  However, this only happens at begin_subpass
time so it shouldn't be substantially more expensive.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/vulkan/anv_blorp.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c