anv: Properly allocate aux-tracking space for CCS_E
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 21 Oct 2019 19:56:00 +0000 (12:56 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 28 Oct 2019 17:47:04 +0000 (10:47 -0700)
commitd0fcc2dd503f734f10f879ad666c27fd81c44262
tree8bd27e98f04dd38363ee392922fa38b331bf62a0
parent698d723a6d4f19de750fafc9287f1bd74f25ba07
anv: Properly allocate aux-tracking space for CCS_E

add_aux_state_tracking_buffer() actually checks the aux usage when
determining how many dwords to allocate for state tracking. Move the
function call to the point after the CCS_E aux usage is assigned.

Fixes: de3be618016 ("anv/cmd_buffer: Rework aux tracking")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h