mesa/src/compiler
Timothy Arceri 5fa851637b glsl: replace some C++ code with C
This replaces some new/delete uses with malloc/free.

This is more consistent with most of the other glsl IR code but
more importantly it allows the game "Battle Block Theater" to
start working on some mesa drivers. The game overrides new and
ends up throwing an assert and crashing when it sees this
function calling new [0].

Note: The game still crashes with radeonsi due to similar conflicts
with LLVM.

CC: mesa-stable

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11907>
(cherry picked from commit 749251391d)
2021-07-22 23:05:39 +01:00
..
glsl glsl: replace some C++ code with C 2021-07-22 23:05:39 +01:00
nir nir/ifind_msb_rev: fix input check 2021-07-13 09:58:56 +01:00
spirv Convert most remaining free-form fall-through comments to FALLTHROUGH 2021-07-13 00:30:11 +01:00
Android.glsl.gen.mk android: util: Move xxd.py to util 2020-10-11 23:22:34 +02:00
Android.glsl.mk android: glsl: build shader cache sources 2017-02-20 16:30:37 +00:00
Android.mk
Android.nir.gen.mk android: spirv: fix '::' typo in gen rules 2020-12-08 22:44:23 +01:00
Android.nir.mk android: fix libmesa_nir build 2017-07-21 08:47:56 +03:00
builtin_type_macros.h compiler/types: Add 64-bit image types 2020-11-09 17:17:39 +00:00
glsl_types.cpp Convert most remaining free-form fall-through comments to FALLTHROUGH 2021-07-13 00:30:11 +01:00
glsl_types.h glsl: add missing support for explicit components in interface blocks 2021-05-18 23:02:26 +02:00
Makefile.sources android: nir: add nir_lower_fragcolor.c to Makefile.sources 2021-05-18 23:02:25 +02:00
meson.build spirv: add some tests for volatile/available/visible 2020-09-01 17:15:22 +00:00
nir_types.cpp nir: Add a size_align helper function for aligning elements to 16 bytes. 2020-11-16 13:54:22 -08:00
nir_types.h nir: Add a size_align helper function for aligning elements to 16 bytes. 2020-11-16 13:54:22 -08:00
shader_enums.c compiler: Drop now unused gl_varying_slot_name() 2021-02-13 00:44:53 +00:00
shader_enums.h shader_enums: Fix MSVC warning C4334 (32bit shift cast to 64bit) 2021-04-20 19:43:26 +02:00
shader_info.h nir: Move shared_memory_explicit_layout bit into common shader_info 2021-05-12 21:37:10 +02:00