st/dri: fix a crash in server_wait_sync
authorMarek Olšák <marek.olsak@amd.com>
Thu, 5 Jul 2018 22:15:31 +0000 (18:15 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 6 Jul 2018 20:23:37 +0000 (16:23 -0400)
commit0eaf069679ccf86de6739d5eaa439db075f02903
tree093d24c6b9fc11e7009bdab49f51321fefe67588
parentb39bdb07164211c483a3c8a8625689169be09cc4
st/dri: fix a crash in server_wait_sync

Ported from i965 including the comment.

This fixes:
    dEQP-EGL.functional.reusable_sync.valid.wait_server

Cc: 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/state_trackers/dri/dri_helpers.c