mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 21:38:18 +02:00
This gives our shifts SM5 behaviour at the cost of a little extra ALU. That way, we match NIR's shifts. This fixes unsoundness of GLSL expressions like "a << (b & 31)", where the & would mistakenly get optimized away. Closes: #8181 Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reported-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21673>
14 lines
224 B
C
14 lines
224 B
C
/*
|
|
* Copyright 2023 Alyssa Rosenzweig
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
#ifndef AGX_NIR_H
|
|
#define AGX_NIR_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
struct nir_shader;
|
|
|
|
bool agx_nir_lower_algebraic_late(struct nir_shader *shader);
|
|
|
|
#endif
|