dri2: do not conflate unbind and bindContext() failure
authorLuigi Santivetti <luigi.santivetti@imgtec.com>
Tue, 30 Jun 2020 10:32:49 +0000 (11:32 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Jul 2020 18:42:03 +0000 (18:42 +0000)
commit8b0b6f907d7ba304cea02bdb81fbb914d6077cb9
tree5de29fe2db041ee88a39c19d619581acbfa34862
parent6b12999ef7c5b754df0919cdc9e354d58abbc4fb
dri2: do not conflate unbind and bindContext() failure

dri2_make_current() has become hard to follow, address this by
splitting the semantic of needing a call to bindContext() and
its failure.

Cc: mesa-stable
Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5707>
src/egl/drivers/dri2/egl_dri2.c