mesa/src/broadcom
Simon Ser 8de086e12f v3d: implement resource_get_param
Prior to this commit, the stride, offset and modifier were fetched
via WINSYS_HANDLE_TYPE_KMS. However we can't make such a query
succeed if the buffer couldn't be imported to the KMS device.

Instead, implement the resource_get_param hook to allow users to
fetch this information without WINSYS_HANDLE_TYPE_KMS.

A tiny helper function is introduced to compute the modifier of a
resource.

Signed-off-by: Simon Ser <contact@emersion.fr>
Fixes: 7bcb223639 ("v3d, vc4: Fix dmabuf import for non-scanout buffers")
Reported-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12370>
2021-08-19 13:12:51 +00:00
..
ci v3d: implement resource_get_param 2021-08-19 13:12:51 +00:00
cle python: drop python2 support 2021-08-14 21:44:32 +00:00
clif v3dv: clif format dumping support 2020-10-13 21:21:26 +00:00
common v3d,v3dv: add options to force 32-bit or 16-bit TMU precision 2021-08-11 05:57:10 +00:00
compiler broadcom/compiler: set current block on incrementing unifa 2021-08-12 12:33:46 +00:00
drm-shim vc4: add drm-shim 2021-01-28 16:14:06 +00:00
qpu broadcom/qpu: use and expand version info at opcode description 2021-08-19 01:08:14 +02:00
simulator v3d/simulator: implement performance counters 2021-08-03 08:33:52 +00:00
vulkan v3dv: Implement VK_EXT_provoking_vertex 2021-08-17 07:49:41 +00:00
.editorconfig broadcom: add editorconfig 2017-07-25 14:44:52 -07:00
meson.build broadcom: remove v3dv3 from neon library 2021-07-29 08:26:11 +00:00