Hyunjun Ko
f976f71fb0
turnip: Use the new common device lost tracking
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14105 >
2022-01-13 04:01:44 +00:00
Jason Ekstrand
a1ac8234ec
turnip: Plumb non-startup errors through the new vk_error helpers
...
Also, change every vk_error to use the closest object instead of
fetching all the way back to the instance.
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13045 >
2021-10-07 20:51:36 +00:00
Danylo Piliaiev
b1eb088792
turnip/kgsl: fix compilation after perfetto introduction
...
Perfetto isn't supported with kgsl at the moment. Make stubs for
missing functions.
Fixes: 3dd1bb6355
"turnip: implement basic perfetto support"
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5352
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12837 >
2021-09-14 09:34:45 +00:00
Rob Clark
4e28dfe58e
freedreno: Device matching based on chip_id
...
Add support for device matching based on chip_id instead of gpu_id, to
handle newer GPUs
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12159 >
2021-08-06 18:51:50 +00:00
Rob Clark
7806843866
freedreno/all: Introduce fd_dev_id
...
Move away from using gpu_id as the primary means to identify which
adreno we are running on, as future GPUs (starting with 7c3) stop
providing a gpu_id as a new naming scheme is introduced.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12159 >
2021-08-06 18:51:50 +00:00
Hyunjun Ko
1a773c0009
turnip: add missing VKAPI_ATTR/CALL
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11099 >
2021-06-14 02:01:57 +00:00
Hyunjun Ko
41eaa07823
turnip/kgsl: Fix to build on android.
...
Fixes: 3f229e34
("turnip: Implement VK_KHR_timeline_semaphore.")
Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11153 >
2021-06-03 08:55:06 +00:00
Danylo Piliaiev
413e7c6dc8
turnip: make possible to create read-only bo with tu_bo_init_new
...
GPU won't be able to write to such BOs, which would to useful for
cmdstream BOs.
Move "bool dump" to the new flags along the way.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10807 >
2021-05-17 18:29:09 +00:00
Eric Anholt
6eee6769e9
turnip: Fix KGSL build since common dispatch rework.
...
Fixes: 59d70c47c7
("turnip: Use the common dispatch framework")
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9764 >
2021-03-24 17:25:07 +00:00
Samuel Iglesias Gonsálvez
4342dec09a
turnip: keep track of memory heap usage, size and flags
...
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8524 >
2021-02-17 08:07:19 +01:00
Hyunjun Ko
19a7a915ca
turnip/kgsl: support VK_KHR_performance_query
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6808 >
2020-12-22 04:57:22 +00:00
Eric Anholt
9a14e74752
turnip/kgsl: Add support for importing dma-bufs.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7015 >
2020-10-08 21:04:01 +00:00
Eric Anholt
b732e4f274
turnip/kgsl: Fix last minute breakage of the build.
...
Need to land KGSL in CI!
Fixes: 8163c818e3
("turnip: implement timestamp fences/semaphores for kgsl backend")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7015 >
2020-10-08 21:04:01 +00:00
Eric Anholt
e33f9dbc1a
turnip/kgsl: Add strerror decode in BO init failure.
...
Just covering more of the error paths.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7014 >
2020-10-05 22:42:14 +00:00
Jonathan Marek
8163c818e3
turnip: implement timestamp fences/semaphores for kgsl backend
...
This gets fences and semaphores working for kgsl (minus import/export).
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7000 >
2020-10-05 21:07:01 +00:00
Jonathan Marek
728061b968
turnip: signal fence and semaphore in AcquireNextImage2KHR
...
As a result of doing semaphores correctly, this is needed for things to
work correctly.
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6719 >
2020-09-30 00:32:40 +00:00
Eric Anholt
a55dc276a3
turnip: Replace tu_log*() with mesa_log*()
...
This gets us logging on Android.
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6806 >
2020-09-28 09:14:44 -07:00
Jonathan Marek
cec0bc73e5
turnip: rework fences to use syncobjs
...
Fences are now just a syncobj, which makes our life easier.
The next step will be to fill out ImportFenceFdKHR()/GetFenceFdKHR().
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6683 >
2020-09-24 14:37:13 +00:00
Eric Anholt
08add9f61c
turnip/kgsl: Associate fences with submits.
...
This fixes all the I was seeing in the multiview tests.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4479 >
2020-09-21 22:51:05 +00:00
Kristian H. Kristensen
e80758405c
turnip: Add kgsl backend
...
Lacking a bit around fences and wsi integration, but there's enough
here to actually drive the GPU.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4479 >
2020-09-21 22:51:05 +00:00