mesa/src
Simon Ser 5aa0faf512 panfrost: 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.

Signed-off-by: Simon Ser <contact@emersion.fr>
Fixes: 4c092947df ("panfrost: fail in get_handle(TYPE_KMS) without a scanout resource")
Reported-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12370>
(cherry picked from commit 99fc6f7271)
2021-08-19 10:07:56 -07:00
..
amd radv: fix fast clearing depth images with mips on GFX10+ 2021-08-19 10:07:33 -07:00
android_stub egl/android: refactor to use the legit vndk/window.h header 2021-06-09 21:07:54 +00:00
asahi agx: Plug memory leak in register allocator 2021-07-26 12:16:50 -07:00
broadcom v3d, vc4: Fix dmabuf import for non-scanout buffers 2021-07-30 09:59:18 -07:00
compiler nir/lower_vectorize_tess_levels: set num_components for vectorized loads 2021-08-19 10:07:35 -07:00
drm-shim drm-shim: Support kernels with >4k pages 2021-08-16 11:40:28 -07:00
egl egl/surfaceless: try kms_swrast before swrast 2021-07-26 12:01:53 -07:00
etnaviv android: Drop the Android.mk build system 2021-07-08 14:44:02 -05:00
freedreno freedreno/ir3: Add build id to the disassembler test 2021-07-29 09:05:41 -07:00
gallium panfrost: implement resource_get_param 2021-08-19 10:07:56 -07:00
gbm gbm/dri: Fix leaking bo memory on failure path 2021-07-13 11:15:44 +00:00
getopt scons: Remove. 2021-03-20 10:38:55 +00:00
glx glx: create DRI screen for display GPU incase of prime 2021-06-03 09:12:32 +00:00
gtest
hgl
imgui
intel intel/isl: Add a missing assert in isl_tiling_get_intratile_offset_sa 2021-08-17 10:33:47 -07:00
loader loader/dri3: create linear buffer with scanout support 2021-07-28 11:29:29 -07:00
mapi glthread: use custom marshal/unmarshal for CallList 2021-07-09 10:05:46 +00:00
mesa mesa: don't return errors for gl_* GetFragData* queries 2021-08-19 10:07:53 -07:00
microsoft nir: Drop nir_ssa_def::name and nir_register::name 2021-07-08 17:34:41 +00:00
nouveau
panfrost panfrost: Rewrite the clear colour packing code 2021-08-16 11:42:04 -07:00
tool pps: Panfrost pps driver 2021-07-13 11:03:55 +00:00
util util: Fix translate from block compressed to rgba 2021-08-13 10:28:38 -07:00
virtio venus: free queues after vkDestroyDevice is emitted 2021-08-09 14:46:36 -07:00
vulkan wl/shm: don't fetch formats if not requested. 2021-08-06 18:18:50 +00:00
meson.build panfrost: Add a Vulkan driver for Midgard/Bifrost GPUs 2021-06-22 14:07:34 +00:00