rusticl: rework CLVec helper function to calculate bounds
authorKarol Herbst <kherbst@redhat.com>
Wed, 12 Apr 2023 15:52:56 +0000 (17:52 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 13 Apr 2023 20:23:44 +0000 (20:23 +0000)
commit3e118e89102d5bcdaf6f26ef7b43833b9e8d9881
tree90c5a45bcdeb00e6460c04217d8639b1a74dd922
parent0a52002a1cc8889d4d515a2cf90b7682f22f8273
rusticl: rework CLVec helper function to calculate bounds

We kinda need three things:
1. offset of a point in linear memory
2. size of access for a region
3. a mix of both

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22449>
src/gallium/frontends/rusticl/api/memory.rs
src/gallium/frontends/rusticl/api/types.rs