iris: Explain how conditional aux accesses work
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 8 Jan 2021 18:18:28 +0000 (10:18 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 8 Jan 2021 23:23:31 +0000 (23:23 +0000)
commitfc06683d07124a699e8831f451e53957db384d72
treeb41558bc892f4969a88eeafb3789c36b0e8201b3
parent2d08711a2c982c402d4ca7b6760229c5bd137eab
iris: Explain how conditional aux accesses work

Apart from an issue with fast clears that will be addressed soon,
aux-state tracking with conditional rendering works because the
aux-state info needed for performing required resolves is never lost.

Add comments explaining how this works. Assertions are omitted to avoid
having to pass render_condition variables into
iris_resource_prepare_access and iris_resource_finish_write.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7762>
src/gallium/drivers/iris/iris_resolve.c