mesa/src/asahi
Alyssa Rosenzweig ba27071c8b agx: Fold addressing math into atomics
Like our loads and stores, our global atomics support indexing with a 64-bit
base plus a 32-bit element index, zero- or sign-extended and multiplied by the
word size. Unlike the loads and stores, they do not support additional shifting
(it's not too useful), so that needs an explicit lowering.

Switch to using AGX variants of the atomics, running our address pattern
matching on global atomics in order to delete some ALU.

This cleans up the image atomic lowering nicely, since we get to take full
advantage of the shift + zero-extend + add on the atomic... The shift comes from
multiplying by the bytes per pixel.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23529>
2023-06-09 12:06:00 +00:00
..
compiler agx: Fold addressing math into atomics 2023-06-09 12:06:00 +00:00
drm-shim asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
layout ail: Add MSAA tests 2023-05-11 23:24:48 +00:00
lib asahi: Remove stale comments 2023-06-07 03:21:49 +00:00
.clang-format asahi: Use the Mesa base style 2023-05-29 21:06:12 +00:00
meson.build asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00