st/nine: Improve Surface GetContainer
authorAxel Davy <davyaxel0@gmail.com>
Fri, 12 Mar 2021 14:07:45 +0000 (15:07 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Apr 2021 08:33:13 +0000 (08:33 +0000)
commitd03f401fda2525d56db57bcb1dbd2a603cc68a2a
tree6ca94b9c7bf96c43648ff98c975e84cdf556c16e
parent17dc334b81f9ea06e3a8960c948a3ef82a0df0e3
st/nine: Improve Surface GetContainer

Prevents a crash in wine tests. Not sure
this behaviour is the correct one, but at
least it'll check the IID passed is the device
before returning it.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160>
src/gallium/frontends/nine/surface9.c