mesa/src
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
..
amd radv: Set the RADEON_SURF_OPTIMIZE_FOR_SPACE flag for images 2017-07-18 16:18:35 +10:00
broadcom broadcom/vc4: Add more packets to the v2.1 XML. 2017-07-13 11:30:42 -07:00
compiler nir: Use nir_src_copy instead of direct assignments. 2017-07-18 23:44:50 -07:00
egl egl/wayland: Use linux-dmabuf interface for buffers 2017-07-18 22:16:21 +01:00
gallium radeonsi: add back the USE_MININUM_PRIORITY flag to the low-prio compiler queue 2017-07-18 13:13:34 -04:00
gbm gbm: Remove is_planar_format dead code 2017-07-18 22:16:20 +01:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx egl: turn one more boolean int into a bool 2017-06-21 21:42:14 +01:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel intel/blorp/gen4: Drop cube map flag for single face copy 2017-07-18 21:36:13 +03:00
loader loader/dri3: Use dri3_find_back in loader_dri3_swap_buffers_msc 2017-07-13 16:49:28 +09:00
mapi mapi: add missing no_error tag to glBlitNamedFramebuffer() 2017-07-18 10:07:34 +02:00
mesa i965/blorp: Use the return value of brw_emit_reloc. 2017-07-18 15:53:33 -07:00
util util/u_queue: add an option to resize the queue when it's full 2017-07-17 10:57:20 -04:00
vulkan vulkan/util: fix typo in comment 2017-07-18 13:56:04 +01:00
Makefile.am build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00
SConscript build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00