gallium: ddebug: Add missing fence related wrappers
authorGuido Günther <agx@sigxcpu.org>
Wed, 3 Apr 2019 11:08:47 +0000 (13:08 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 4 Apr 2019 15:30:15 +0000 (17:30 +0200)
commita5e24dc41655a15a719a91fd0bdaafe37e0ac3e6
tree5ab304e740dece6c206f644005a6175d95655b70
parent3fdfface3ece93b55ba39dd987dd0962ac37bcdf
gallium: ddebug: Add missing fence related wrappers

Without that `GALLIUM_DDEBUG=always kmscube -A` would segfault like

  #0  0x0000000000000000 in  ()
  #1  0x0000ffffa72a3c54 in dri2_get_fence_fd (_screen=0xaaaaed4f2090, _fence=0xaaaaed9ef880) at ../src/gallium/state_trackers/dri/dri_helpers.c:140
  #2  0x0000ffffa8744824 in dri2_dup_native_fence_fd (drv=0xaaaaed5010c0, disp=0xaaaaed5029a0, sync=0xaaaaed9ef7c0) at ../src/egl/drivers/dri2/egl_dri2.c:3050
  #3  0x0000ffffa87339b8 in eglDupNativeFenceFDANDROID (dpy=0xaaaaed5029a0, sync=0xaaaaed9ef7c0) at ../src/egl/main/eglapi.c:2107
  #4  0x0000aaaabd29ca90 in  ()
  #5  0x0000aaaabd401000 in  ()

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/auxiliary/driver_ddebug/dd_context.c
src/gallium/auxiliary/driver_ddebug/dd_screen.c