etnaviv: warn when imported TS buffer is the same as color buffer
authorLucas Stach <l.stach@pengutronix.de>
Tue, 25 Oct 2022 16:38:12 +0000 (18:38 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 3 Nov 2022 20:24:41 +0000 (20:24 +0000)
commitaa35e86cc8aee67d95d2d925a7d9485906ab9d13
tree99b1bc678354db2d514da49fc93dc79cf1070796
parentc2b06e1a38205f71120ae46eb4ee581d3a74a4f4
etnaviv: warn when imported TS buffer is the same as color buffer

Color and TS buffers are allocated separately for each etnaviv resource, so
getting the same base and TS buffer at import time is unexpected and a strong
hint at the application doing something wrong, like passing in the same GEM
handle for all planes on a GBM import. Print a warning to give the user some
feedback.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9780>
src/gallium/drivers/etnaviv/etnaviv_resource.c