mesa/src
Chris Wilson 34195d69dd iris: Initialise stub iris_seqno to 0
We create a stub never-signaled seqno to force the iris_fence to use the
fence fd, but we need to fully initialise the iris_seqno struct so that
the unset pointers are NULL and we do not try to destroy them later.

  ==38644== Conditional jump or move depends on uninitialised value(s)
  ==38644==    at 0xF7FBFAA: pipe_resource_reference (u_inlines.h:142)
  ==38644==    by 0xF7FC22F: iris_seqno_destroy (iris_seqno.c:38)
  ==38644==    by 0xF7E8930: iris_seqno_reference (iris_seqno.h:89)
  ==38644==    by 0xF7E8BC3: iris_fence_destroy (iris_fence.c:131)
  ==38644==    by 0xF7E8C41: iris_fence_reference (iris_fence.c:143)
  ==38644==    by 0xEF24525: dri2_destroy_fence (dri_helpers.c:176)
  ==38644==    by 0x4865DC2: dri2_egl_unref_sync (egl_dri2.c:3302)
  ==38644==    by 0x48661E8: dri2_destroy_sync (egl_dri2.c:3433)
  ==38644==    by 0x4855BA4: _eglDestroySync (eglapi.c:1952)
  ==38644==    by 0x4855CF5: eglDestroySyncKHR (eglapi.c:1972)
  ==38644==    by 0x402628: test_cleanup (egl_khr_fence_sync.c:232)
  ==38644==    by 0x40421E: test_eglCreateSyncKHR_native_from_fd (egl_khr_fence_sync.c:1521)

Closes: #2909
Fixes: fd1907efb3 ("iris: Convert fences to using lightweight seqno")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5004>
2020-05-18 19:22:12 +00:00
..
amd radv: use util_float_to_half_rtz 2020-05-17 01:12:59 +02:00
broadcom v3d/tex: use TMUSLOD register if possible 2020-05-11 23:52:46 +00:00
compiler spirv: handle OpCopyObject correctly with any types 2020-05-15 19:18:53 +00:00
drm-shim drm-shim: silence warnings 2020-04-30 11:32:54 +03:00
egl egl: Limit the EGL ver for android 2020-05-11 13:06:22 +00:00
etnaviv etnaviv: drm: Normalize nano seconds 2020-05-10 07:32:12 +00:00
freedreno freedreno/drm: handle ancient kernels 2020-05-18 19:00:47 +00:00
gallium iris: Initialise stub iris_seqno to 0 2020-05-18 19:22:12 +00:00
gbm gbm/dri: Propagate queryDmaBufModifiers return value 2020-04-16 10:19:35 +00:00
getopt meson: build getopt when using msvc 2019-09-10 20:36:47 +00:00
glx glx: omit loader_loader() for macOS 2020-04-15 11:37:21 +00:00
gtest gtest: Update to 1.10.0 2020-04-20 11:57:11 +00:00
hgl scons: Prune out unnecessary targets. 2020-03-30 13:38:01 +00:00
imgui meson: drop intel_ prefix on imgui_core 2019-12-10 15:16:02 +00:00
intel intel: Store the aperture size in devinfo. 2020-05-15 16:57:04 +00:00
loader loader: fallback to kernel name, if PCI fails 2020-04-01 16:57:22 +01:00
mapi glthread: stop using GLenum16 to get correct GL errors for out-of-bounds enums 2020-05-13 20:10:42 +00:00
mesa intel: Store the aperture size in devinfo. 2020-05-15 16:57:04 +00:00
panfrost gallium: change comments to remove 'state tracker' 2020-05-13 13:47:27 -04:00
util util/rand_xor: extend the urandom path to all non-Windows platforms 2020-05-16 12:05:37 +00:00
vulkan vulkan: import common code for generating extensions 2020-05-13 08:45:23 +02:00
meson.build remove final imports.h and imports.c bits 2020-04-21 11:09:04 -07:00
SConscript scons: Prune out unnecessary targets. 2020-03-30 13:38:01 +00:00