pan/compiler: Add better documentation for second lower_int64
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Signed-off-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40924>
This commit is contained in:
Lorenzo Rossi 2026-04-15 18:30:39 +02:00 committed by Marge Bot
parent d2f7b8db9d
commit db27a10f38

View file

@ -296,8 +296,11 @@ bi_optimize_late(nir_shader *nir, uint64_t gpu_id,
* handle them */
NIR_PASS(_, nir, nir_opt_algebraic);
/* TODO: Why is 64-bit getting rematerialized?
* KHR-GLES31.core.shader_image_load_store.basic-allTargets-atomicFS */
/* This is only needed because we support iadd64 but not isub64.
* nir_opt_algebraic lowers isub64 into iadd64 + ineg64 and since ineg64 is
* not supported either we lower that too.
* TODO: wire up isub64 and ineg64, then remove this
*/
NIR_PASS(_, nir, nir_lower_int64);
/* Algebraic can materialize instructions with a bit_size that we need to lower */