crocus: export GEM handle with RDWR access rights
authorMichael Olbrich <m.olbrich@pengutronix.de>
Wed, 20 Apr 2022 14:26:28 +0000 (16:26 +0200)
committerMichael Olbrich <m.olbrich@pengutronix.de>
Thu, 21 Apr 2022 05:11:31 +0000 (07:11 +0200)
commit5c4906dc0f0b9609760dc0a18805045e568b2d0b
tree5ab19dbd110f8fb4d8447c8b48ec90935ac910e1
parent092ac67bb9f34091844932d662bbf1f0fa5b3ccb
crocus: export GEM handle with RDWR access rights

Without this, it is impossible to export gem handles with write access.

This was fixed the same way for
i965 (https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10850) and
iris (https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10851).

Cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>`
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16057>
src/gallium/drivers/crocus/crocus_bufmgr.c