Revert remaining half of "gallium/dri2: Pass the resource that corresponds to the...
authorLucas Stach <l.stach@pengutronix.de>
Tue, 13 Apr 2021 14:42:57 +0000 (16:42 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Apr 2021 16:40:04 +0000 (16:40 +0000)
commit07546c69b0b23feeab532a903f4bd1f7b1caa019
tree2fe2c0cd48f8e9265531a97d4d859d4e490b7787
parentcbb1e2dcac4bcc84fa66f262f30820eb5da84a3f
Revert remaining half of "gallium/dri2: Pass the resource that corresponds to the plane"

As documented in 6ec7e0d40664 (gallium: document convention for get_handle
calls on multi-planar resources) it's the drivers responsibility to walk
the chain of resources for multi-planar resources. The get_handle interface
should always be called with the base resource by the frontend.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Simon Ser <contact@emersion.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10212>
src/gallium/frontends/dri/dri2.c