anv/cmd_buffer: Simplify transition_depth_buffer
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 2 Feb 2018 03:13:12 +0000 (19:13 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 20 Feb 2018 21:57:09 +0000 (13:57 -0800)
commit7ea8131aa0830b2a834864edcd06354334ea2fd9
treee4a9818faaa2265966559ac4c852023a9fec3144
parent87e86ee2e65eb73df397b3140cfa056216438098
anv/cmd_buffer: Simplify transition_depth_buffer

If we don't have HiZ, then anv_layout_to_aux_usage will return NONE for
both layouts.  If the two layouts are the same, they will get the aux
usage.  In either case, the code below will give us ISL_AUX_OP_NONE and
we'll return without doing anything.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/intel/vulkan/genX_cmd_buffer.c