anv: Refactor dirty masking in cmd_buffer_flush_state
authorCaio Oliveira <caio.oliveira@intel.com>
Tue, 21 Dec 2021 08:40:53 +0000 (00:40 -0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 21 Dec 2021 11:07:31 +0000 (11:07 +0000)
commitde916d827f77cdce88a413f6a4dc2c3f2b183ee2
tree3e883b5571d028258b66b85b49d4669d3dc85247
parent37fca614b8642b633b94b829f7ca8fd4872a9f76
anv: Refactor dirty masking in cmd_buffer_flush_state

Instead of masking the dirty variable itself, use an appropriate mask
in the users of dirty.  This will avoid extra tracking when dealing
with Task/Mesh later.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14275>
src/intel/vulkan/genX_cmd_buffer.c