mesa/src
Connor Abbott 8fc2f652a2 util/set: don't compare against deleted entries
When we delete entries in the hash set, we mark them "deleted" by
setting their key to the deleted_key, which points to a dummy
deleted_key_value. When searching for an entry, we normally skip over
those, but set_add() had some code for searching for duplicate entries
which forgot to skip over deleted entries. This led to a segfault inside
the NIR vectorization pass, since its key comparison function
interpreted the memory where deleted_key_value resides as a pointer and
tried to dereference it.

v2:
- add better commit message (Timothy)
- use entry_is_deleted (Timothy)

Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
2016-02-02 14:42:32 -05:00
..
compiler glsl: Disable tree grafting optimization for shared variables 2016-02-02 10:50:40 -08:00
egl egl/dri2: expose srgb configs when KHR_gl_colorspace is available 2016-01-22 11:55:54 +00:00
gallium virgl: mark function as static 2016-02-02 17:55:40 +10:00
gbm gbm.h: Add a missing stddef.h include for size_t. 2015-10-30 19:12:14 +00:00
getopt
glx glx/dri3: a drawable might not be bound at wait time 2015-12-21 06:43:58 -05:00
gtest
hgl
loader virtio_gpu: Add PCI ID to driver map 2016-01-23 12:35:24 +10:00
mapi glapi: add GL_OES_geometry_shader extension 2016-01-22 17:13:55 +01:00
mesa Revert "i965: Provide sse2 version for rgba8 <-> bgra8 swizzle" 2016-02-02 15:45:59 +01:00
util util/set: don't compare against deleted entries 2016-02-02 14:42:32 -05:00
Makefile.am glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
SConscript glsl: move to compiler/ 2016-01-26 16:08:33 +00:00