nouveau: Skip cctl for atomic counters in tgsi
authorM Henning <drawoc@darkrefraction.com>
Sun, 30 Jan 2022 03:20:58 +0000 (22:20 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 19 Apr 2022 16:33:36 +0000 (16:33 +0000)
commit8313a9231c9a7e6f649cbd663d1cf2a7b0fbb91d
treee0c3a6cea48cd39c0b09f3f83a60f6c8c7947011
parent850197b3e07460d4527aa7e7f907d4b94d15415f
nouveau: Skip cctl for atomic counters in tgsi

The tgsi path already marked all aliasing loads of atomic counters with
CACHE_CG, so we don't need to emit a cctl. This patch uses the cache
flag on the atomic to model whether the L1 cache needs the stale
values to be flushed or not.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14386>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp