mesa/src/compiler
Rhys Perry c23411a970 nir/algebraic: optimize bits=umin(bits, 32-(offset&0x1f))
Optimizes patterns which are created by recent versions of vkd3d-proton,
when constant folding doesn't eliminate it entirely:
- ubitfield_extract(value, offset, umin(bits, 32-(offset&0x1f)))
- ibitfield_extract(value, offset, umin(bits, 32-(offset&0x1f)))
- bitfield_insert(base, insert, offset, umin(bits, 32-(offset&0x1f)))

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13225>
2022-09-13 20:36:06 +00:00
..
clc nir: add a nir_opt_if_options enum 2022-08-10 12:55:39 +00:00
glsl mesa/glsl: Add support for NV_shader_noperspective_interpolation 2022-09-09 07:22:20 +00:00
isaspec isaspec: Move isa_decode(..) declaration 2022-09-03 19:26:04 +00:00
nir nir/algebraic: optimize bits=umin(bits, 32-(offset&0x1f)) 2022-09-13 20:36:06 +00:00
spirv spirv: avoid allocating memory twice 2022-09-11 22:13:09 +00:00
builtin_type_macros.h glsl: add vec5 glsl types 2022-01-18 16:10:35 +08:00
glsl_types.cpp compiler/types: Don't place members in the previous substruct's end padding 2022-06-09 22:55:37 +00:00
glsl_types.h compiler/types: Add a texture type 2021-10-16 05:49:34 +00:00
meson.build spirv: Use a single binary for gtests 2021-10-20 17:55:36 +00:00
nir_gl_types.h nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +00:00
nir_types.cpp nir: Add a pass to lower mediump temps and shared mem. 2022-09-01 22:39:39 +00:00
nir_types.h nir: Add a pass to lower mediump temps and shared mem. 2022-09-01 22:39:39 +00:00
shader_enums.c nir+ir3: Rename load_size_ir3 to load_center_rhw_ir3. 2022-07-11 16:56:05 +00:00
shader_enums.h gallium: use gl shader types as the basis for the gallium ones 2022-08-04 08:17:39 +00:00
shader_info.h spirv, compiler: add "bool nv" to shader_info.mesh 2022-09-02 16:18:33 +00:00