i965: store reference to the context within struct brw_fence (v2)
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 15 Jul 2016 07:27:09 +0000 (16:27 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 20 Jul 2016 14:45:20 +0000 (15:45 +0100)
commit4f48674d51f03d8c954a89dfc49539a1dc750c4d
treebdfd0cd0ebefc0c843683be17229b552cff261e6
parent9bebef4034c79d0f223a6e61943dd44bcb6442ee
i965: store reference to the context within struct brw_fence (v2)

As the spec allows for {server,client}_wait_sync to be called without
currently bound context, while our implementation requires context
pointer.

v2: Add a mutex and acquire it for the duration of
    brw_fence_client_wait() and brw_fence_is_completed() as suggested
    by Chad.

Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
src/mesa/drivers/dri/i965/intel_syncobj.c