Boris Brezillon
2d2820349a
panvk: Fix call ordering in panvk_DestroyDevice()
...
Destroy the decode context when all private BOs attached to the device
have been destroyed, otherwise we a have use-after-free situation when
panvk_priv_bo_destroy() calls pandecode_inject_mmap().
Fixes: 211aa20194 ("panvk: Move away from panfrost_{bo,device}")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28104 >
2024-03-14 09:51:41 +01:00
Jordan Justen
ce900dcbb1
intel/dev: Add ATS-M PCI ID for Data Center GPU Flex 170G
...
Ref: bspec 44477
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28141 >
2024-03-14 08:01:56 +00:00
Jordan Justen
59e0c38427
intel/dev: Adjust device strings for ATS-M devices
...
Ref: https://ark.intel.com/content/www/us/en/ark/products/230020/intel-data-center-gpu-flex-140.html
Ref: https://ark.intel.com/content/www/us/en/ark/products/230019/intel-data-center-gpu-flex-170.html
Ref: e00230a6c2/shared/source/dll/devices/devices_base.inl (L58-L59)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28141 >
2024-03-14 08:01:56 +00:00
Eric Engestrom
9b6d6c1d2d
docs: add sha256sum for 24.0.3
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28163 >
2024-03-14 01:08:02 +00:00
Eric Engestrom
c0a40e724b
docs: add release notes for 24.0.3
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28163 >
2024-03-14 01:08:02 +00:00
Faith Ekstrand
7604697ec6
nvk: Implement shaderStorageImageMultisample
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9660
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28159 >
2024-03-13 23:49:12 +00:00
Faith Ekstrand
357720c5a7
nvk: Use different descriptor layouts for storage vs. sampled images
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28159 >
2024-03-13 23:49:12 +00:00
Faith Ekstrand
86a462fb96
nvk: Stop pretending to handle Intel image intrinsics
...
This is probably just a copy+paste from ANV when I wrote the descriptor
code. There's no actual point to pretending to do anything with these.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28159 >
2024-03-13 23:49:12 +00:00
Faith Ekstrand
bd9836a0b8
nvk: Use a HW generation names instead of chipsets
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28159 >
2024-03-13 23:49:12 +00:00
Faith Ekstrand
be1ef1a8d8
nil: Expose nil_pix_extent_sa()
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28159 >
2024-03-13 23:49:11 +00:00
Faith Ekstrand
418f8be9ea
nil: Add a helper to view a MSAA image as samples
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28159 >
2024-03-13 23:49:11 +00:00
Faith Ekstrand
ed6fd25a62
nil: Add support for larger textures on Pascal+
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28159 >
2024-03-13 23:49:11 +00:00
Faith Ekstrand
c3177e4fc2
nil: Whitespace fix
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28159 >
2024-03-13 23:49:11 +00:00
Valentine Burley
72e1a57752
nvk: Reorder device features
...
Sort device features by KHR, EXT, vendor and then alphabetically within that.
Signed-off-by: Valentine Burley <valentine.burley@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28094 >
2024-03-13 23:30:46 +00:00
Valentine Burley
94622ae491
nvk: Advertise VK_KHR_vertex_attribute_divisor
...
This is a promotion from the EXT, except the new property
supportsNonZeroFirstInstance which is already supported.
Signed-off-by: Valentine Burley <valentine.burley@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28094 >
2024-03-13 23:30:46 +00:00
Dave Airlie
133c73da85
nvk: enable a mappable bar heap when rebar is disabled.
...
Now that we've resolved the kernel side issues, this should be fine
to expose on non-rebar systems.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28144 >
2024-03-13 23:13:40 +00:00
Pavel Ondračka
647a2d1f6b
r300/ci: enable nine tests
...
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org>
Reviewed-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27434 >
2024-03-13 22:31:26 +00:00
Pavel Ondračka
98b36e02b9
ci: build nine tests
...
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org>
Reviewed-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27434 >
2024-03-13 22:31:26 +00:00
Pavel Ondračka
96640b142e
ci: build nine in debian-testing
...
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org>
Reviewed-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27434 >
2024-03-13 22:31:26 +00:00
Pavel Ondračka
da28579633
ci: install xwayland in x86_64_test-gl
...
X is needed for the incoming nine tests.
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org>
Reviewed-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27434 >
2024-03-13 22:31:26 +00:00
David Heidelberg
13812cc91d
ci: reduce irrelevant output to a simple list of libraries
...
Fixes: 90b6f84c5e ("ci: when specifying a driver remove all other ones")
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28048 >
2024-03-13 22:28:34 +01:00
David Heidelberg
045bc86ac9
ci/freedreno: mark fails resolved by "drm/msm/gem: Add metadata uapi"
...
This fails can be resolved by:
- using https://patchwork.freedesktop.org/series/126031/ patchset on
top of 6.6 (in our case)
- using 6.8 or later kernel
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28048 >
2024-03-13 21:43:17 +01:00
David Heidelberg
f1680f58b1
ci/freedreno: disable workarounds for Adreno 618, 630, and 660
...
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28048 >
2024-03-13 21:42:59 +01:00
David Heidelberg
ab690f25e8
ci: uprev kernel to 6.6.21
...
Including new https://patchwork.freedesktop.org/series/126031/ from 6.8
to get rid of spammed logs with:
```
TU: warning: Failed to set BO metadata with DRM_MSM_GEM_INFO: -22
```
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28048 >
2024-03-13 21:25:05 +01:00
Yiwei Zhang
e0da118ab1
anv/hasvk: default image_read_without_format to true
...
The spv cap has the correct requirements to be satisfied before an app
can use it, so we can drop the redundant check here to be more robust.
Either of below is needed:
- VkPhysicalDeviceFeatures::shaderStorageImageReadWithoutFormat
- VK_VERSION_1_3
- VK_KHR_format_feature_flags2
v2: dropped unused variable
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> (v1)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28117 >
2024-03-13 19:29:04 +00:00
David Heidelberg
9c770f06c6
nine: drop useless and a bit too long line
...
Acked-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: lorn10 <kle@bluewin.ch>
Signed-off-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27971 >
2024-03-13 18:58:15 +00:00
David Heidelberg
5b6a4b1c79
nine: fill missing licenses headers and copyrights
...
Acked-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: lorn10 <kle@bluewin.ch>
Signed-off-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27971 >
2024-03-13 18:58:14 +00:00
David Heidelberg
81d3de71cd
nine: convert licenses block to SPDX
...
Convert licensing information using ISO/IEC 5962:2021 to SPDX format.
Acked-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: lorn10 <kle@bluewin.ch>
Signed-off-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27971 >
2024-03-13 18:58:14 +00:00
Valentine Burley
ac5d529c65
nvk: Enable VK_KHR_shader_subgroup_uniform_control_flow
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9622
Signed-off-by: Valentine Burley <valentine.burley@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28033 >
2024-03-13 18:40:17 +00:00
David Tobolik
376d1e6667
rusticl: implement cl_khr_suggested_local_work_size
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28020 >
2024-03-13 17:59:09 +00:00
José Roberto de Souza
de94d98940
iris: Set BO_ALLOC_NO_SUBALLOC when allocating bo for slab
...
Without setting BO_ALLOC_NO_SUBALLOC iris_bo_alloc() will attempt to
get bo from slabs again.
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27734 >
2024-03-13 16:02:46 +00:00
Karol Herbst
4f165117dc
nouveau/drm: remove nouveau_client::id
...
No idea what was the original purpose, but in the imported code we don't
need any of that.
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27853 >
2024-03-13 15:21:08 +00:00
Karol Herbst
9583fb8d00
nouveau/drm: drop unsued chan argument from nouveau_pushbuf_kick
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27853 >
2024-03-13 15:21:08 +00:00
Karol Herbst
2101c9f2ac
nouveau/drm: rely on nouveau_pushbuf::channel being always set
...
Now with the immediate flag being removed, we can rely on this and drop
some code.
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27853 >
2024-03-13 15:21:07 +00:00
Karol Herbst
a28cd6b1de
nouveau/drm: drop immediate parameter from nouveau_pushbuf_new
...
It was always set to true.
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27853 >
2024-03-13 15:21:07 +00:00
Karol Herbst
1a4c2cba95
nouveau: call glsl_type_singleton_init_or_ref earlier
...
Fixes: 91029b7e87 ("nouveau: take glsl_type ref unconditionally")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27853 >
2024-03-13 15:21:07 +00:00
Karol Herbst
821f4c8d99
nouveau: import libdrm_nouveau
...
Most of the code is copied as is, but there are a couple of changes:
- drop pre nvif code
- nouveau_list -> list_head
- pthread_mutex_t -> simple_mtx_t
- nvif_unwrap removed
- no assignments in if statements
- nouveau_object_mthd -> nouveau_device_info
- reworked object allocation UAPI calls
Most of the reworked code was copied from NVK or a previous version of it
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27853 >
2024-03-13 15:21:07 +00:00
Karol Herbst
a62fba6b62
nvk: use c.get_supported_arguments for compiler flags
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27853 >
2024-03-13 15:21:07 +00:00
Karol Herbst
c398bc5909
drm-uapi: Sync nouveau_drm.h
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27853 >
2024-03-13 15:21:07 +00:00
Lionel Landwerlin
b7719a9ed8
intel/fs: remove some unused send helpers
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28152 >
2024-03-13 14:37:48 +00:00
Erik Faye-Lund
0eaf7cca35
mesa: prefer read-format of RG for snorm
...
There's no good reason we want to read RGBA for SNORM RB textures. Let's
correct the preferred read-format here.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28120 >
2024-03-13 10:19:33 +00:00
Corentin Noël
c9e66df39f
zink: Add error logging on surface creation failure
...
Allows to differenciate which step has failed from the log message.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28025 >
2024-03-13 09:26:31 +00:00
Corentin Noël
28854743dc
zink: Change zink_get_surface to return a zink_surface
...
Allows to avoid systematic casting of its return value.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28025 >
2024-03-13 09:26:31 +00:00
Corentin Noël
207db01829
zink: Make sure to not leak anything on surface creation failure
...
Change wrap_surface to always take the ownership of the wrapped surface and
always check for an allocated value to make sure to not crash here.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28025 >
2024-03-13 09:26:31 +00:00
Corentin Noël
948695e1a4
zink: Move zink_surface_destroy before zink_create_surface
...
This will allow to reuse it inside zink_create_surface.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28025 >
2024-03-13 09:26:30 +00:00
Corentin Noël
27bde4b420
zink: Return early if the source could not have been acquired
...
Make the success case the main one.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28025 >
2024-03-13 09:26:30 +00:00
Corentin Noël
2c22e78619
zink: Separate the template from the wrapped surface
...
Allow to better understand the case when needs_mutable is true, differenciate
`base` from `surf` even if they are the same variable in most cases.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28025 >
2024-03-13 09:26:30 +00:00
Corentin Noël
55cdde758c
zink: Use an intermediary variable for create_surface
...
Allows to NULL-check it afterwards.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28025 >
2024-03-13 09:26:30 +00:00
Corentin Noël
faaa65a1a3
zink: Make wrap_surface return a zink_ctx_surface directly
...
Avoids to cast if back to zink_ctx_surface afterwards.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28025 >
2024-03-13 09:26:30 +00:00
Lionel Landwerlin
2a77a46837
anv: return unsupported for FSR images on Gfx12.0
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28131 >
2024-03-13 08:52:24 +02:00