mesa/src/compiler
Kenneth Graunke 0320bb2c6c nir: Use nir_src_copy instead of direct assignments.
If the source is an indirect register, there is ralloc'd data.  Copying
with a direct assignment will copy the pointer, but the data will still
belong to the old instruction's memory context.  Since we're lowering
and throwing away instructions, that could free the data by mistake.

Instead, use nir_src_copy, which properly handles this.

This is admittedly not a common case, so I think the bug is real,
but unlikely to be hit.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Matt Turner <mattst88@gmail.com>
2017-07-18 23:44:50 -07:00
..
glsl glsl: disable array splitting for AoA 2017-07-19 11:06:23 +10:00
nir nir: Use nir_src_copy instead of direct assignments. 2017-07-18 23:44:50 -07:00
spirv compiler/spirv: Add a .gitignore and ignore spirv_info.c 2017-07-18 09:49:13 -07:00
.gitignore nir/spirv: Remove a duplicate spirv2nir from .gitignore 2016-10-04 07:43:15 -07:00
Android.glsl.gen.mk Android: clean-up trailing '\' in make variables 2017-03-22 17:52:06 +00:00
Android.glsl.mk android: glsl: build shader cache sources 2017-02-20 16:30:37 +00:00
Android.mk Android: glsl: add rules to generate ir_expression*.h header files 2016-09-06 15:58:55 +01:00
Android.nir.gen.mk spirv: Generate spirv_info.c 2017-07-18 09:43:12 -07:00
Android.nir.mk Android: clean-up trailing '\' in make variables 2017-03-22 17:52:06 +00:00
builtin_type_macros.h glsl: Add basic ARB_gpu_shader_int64 types 2017-01-20 15:41:23 -08:00
glsl_types.cpp glsl: stop considering unnamed and named structures equal 2017-06-13 09:35:40 +02:00
glsl_types.h glsl: add glsl_base_type_is_integer 2017-07-05 12:27:10 +02:00
Makefile.am build: Add $(top_srcdir)/src/compiler/spirv to AM_CPPFLAGS 2017-07-18 11:14:47 -07:00
Makefile.glsl.am glsl: automake: export abs_builddir for the tests 2017-03-28 15:31:22 +01:00
Makefile.nir.am spirv: Generate spirv_info.c 2017-07-18 09:43:12 -07:00
Makefile.sources spirv: Generate spirv_info.c 2017-07-18 09:43:12 -07:00
nir_types.cpp nir: add a C wrapper for glsl_type::get_interface_instance() 2017-05-04 13:48:06 -04:00
nir_types.h nir: add a C wrapper for glsl_type::get_interface_instance() 2017-05-04 13:48:06 -04:00
SConscript glsl: Generate ir_expression_operation.h from Python 2016-08-30 16:28:00 -07:00
SConscript.glsl mesa: Remove prog_hash_table.c 2016-09-12 10:48:35 +10:00
SConscript.nir glsl: Generate ir_expression_operation.h from Python 2016-08-30 16:28:00 -07:00
shader_enums.c compiler: Add a system value and varying for ViewIndex 2017-05-03 11:25:46 -07:00
shader_enums.h glsl: Fix gl_shader_stage enum unsigned comparison 2017-06-08 07:26:04 -05:00
shader_info.h compiler: Merge shader_info's tcs and tes structs. 2017-01-10 13:21:21 -08:00