Rob Clark [Wed, 21 Jun 2023 20:39:56 +0000 (13:39 -0700)]
tu/drm: Factor out shared helpers
Factor out a few things that we can re-use between virtio and msm
backends.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23533>
Rob Clark [Thu, 8 Jun 2023 19:59:48 +0000 (12:59 -0700)]
tu: close submitqueues before device_finish()
Otherwise we would have already closed the device.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23533>
Rob Clark [Mon, 22 May 2023 19:43:37 +0000 (12:43 -0700)]
freedreno/drm/virtio: Use global_faults
Rather than doing a synchronous round trip to the host to query fault
count, use the shmem->global_faults field if available. The kernel is
already only reporting faults associated with the same drm_file (which
in this case maps 1:1 to guest process), so the only thing we really
miss is, if the app is using multiple contexts, _which_ context the
fault was in. But vulkan doesn't even use that, which sounds like a
good enough argument that per-submitqueue granularity isn't really
needed.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23533>
Rob Clark [Mon, 22 May 2023 18:50:13 +0000 (11:50 -0700)]
freedreno: Update virtgpu proto
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23533>
Rob Clark [Fri, 19 May 2023 20:33:11 +0000 (13:33 -0700)]
drm-uapi: Update virtgpu header
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23533>
Rob Clark [Mon, 22 May 2023 19:47:06 +0000 (12:47 -0700)]
tu/knl: Remove some random const'ness
This gets in the way with virtio_gpu backend.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23533>
Rob Clark [Fri, 12 May 2023 20:55:51 +0000 (13:55 -0700)]
tu/msm: staticify a couple things
Stop leaking some private implementation details as global symbols.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23533>
Rob Clark [Fri, 19 May 2023 20:16:38 +0000 (13:16 -0700)]
freedreno/drm/virtio: Remove unused header
A remnant from a very early version, prior to refactoring out
fd_ringbuffer_sp to share more code btwn msm and virtgpu backends.
Somehow this never got removed.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23533>
Rob Clark [Fri, 12 May 2023 20:32:41 +0000 (13:32 -0700)]
freedreno: move virtgpu msm_proto.h to common
src/freedreno/virtgpu seems a bit overkill for a single header.. but
maybe there are some other bits we could share?
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23533>
Gert Wollny [Mon, 7 Aug 2023 06:51:23 +0000 (08:51 +0200)]
r600/sfn: take number of dest values into account
With the write mask removed we have to run the loop correctly.
Fixes:
b870988b77f70acd69feb1d4e52343b7c3d4e328
r600/sfn: Stop referencing legacy functionality
Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9490
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24533>
Kevron Rees [Mon, 7 Aug 2023 16:15:19 +0000 (09:15 -0700)]
Force vk vendor for spider-man remastered
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24194>
Mike Blumenkrantz [Thu, 3 Aug 2023 11:36:56 +0000 (07:36 -0400)]
zink: unset line stipple ds3 state flags when stipple not available
Fixes:
7b4c1b3a426 ("zink: track and apply ds3 states only on change")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24478>
Mike Blumenkrantz [Thu, 3 Aug 2023 11:36:00 +0000 (07:36 -0400)]
zink: use VK_WHOLE_SIZE when binding null db buffer descriptors
using range=0 is illegal
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24478>
Mike Blumenkrantz [Thu, 3 Aug 2023 15:44:10 +0000 (11:44 -0400)]
ci: bump VVL to 1.3.261
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24478>
José Roberto de Souza [Thu, 3 Aug 2023 14:19:48 +0000 (07:19 -0700)]
intel: Sync xe_drm.h and rename engine to exec_queue
Sync with commit
f16c04291100 ("drm/xe: Rename engine to exec_queue").
With that Iris and ANV had some major renames that were done manually
as there is to many "engine" in non-related code.
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24476>
Eric Engestrom [Sat, 22 Jul 2023 09:57:22 +0000 (10:57 +0100)]
egl: fixup _eglFilterConfigArray() params and drop _eglFallbackMatch() wrapper
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24292>
Eric Engestrom [Sat, 22 Jul 2023 10:04:19 +0000 (11:04 +0100)]
egl: make _eglFilterConfigArray static
Signed-off-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24292>
Italo Nicola [Wed, 28 Jun 2023 22:25:26 +0000 (22:25 +0000)]
panfrost: add PAN_MESA_DEBUG=yuv for debugging yuv sampler
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21109>
Italo Nicola [Wed, 1 Feb 2023 19:21:26 +0000 (19:21 +0000)]
panfrost: mandate proper alignment requirement depending format and arch
v7+ mandates row_stride alignment to be equal to surface alignment.
AFBC surface alignment is always 16-bytes.
NV12/NV21 formats on v7+ have 16-byte surface alignment.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21109>
Italo Nicola [Thu, 22 Jun 2023 11:55:01 +0000 (11:55 +0000)]
panfrost: advertise support for YUYV and variants
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21109>
Italo Nicola [Tue, 24 Jan 2023 20:59:55 +0000 (20:59 +0000)]
panfrost: prepare the driver to support YUYV and variants
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21109>
Italo Nicola [Thu, 20 Jul 2023 23:11:14 +0000 (23:11 +0000)]
panfrost: prepare pan_image_view for multiplanar formats
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21109>
Italo Nicola [Thu, 13 Jul 2023 15:05:09 +0000 (15:05 +0000)]
pan/decode: decode Multiplanar Surface descriptors
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21109>
Italo Nicola [Thu, 13 Jul 2023 14:45:36 +0000 (14:45 +0000)]
panfrost: refactor (un)packing of surface descriptors
Use the genxml helpers to pack/unpack midgard and bifrost surface
descriptors. Also changed how we describe midgard's descriptors, to make
it more straightforward. We currently only use SURFACE_WITH_STRIDE for
midgard, but pandecode should still be able to decode other surface
descriptor types.
This commit shouldn't change panfrost/pandecode behavior.
Consequenctly, this refactor also prepares pandecode to handle the
SURFACE_YUV descriptor for bifrost in the following patch.
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21109>
Italo Nicola [Fri, 3 Feb 2023 21:20:31 +0000 (21:20 +0000)]
panfrost/genxml: add Multiplanar Surface descriptor
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21109>
Italo Nicola [Thu, 22 Jun 2023 10:43:39 +0000 (10:43 +0000)]
panfrost/genxml: fix Surface With Stride descriptor alignment
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21109>
Luigi Santivetti [Wed, 2 Aug 2023 13:32:12 +0000 (14:32 +0100)]
pvr: do not claim support for ASTC texture compression
We don't support any ASTC formats yet, but the textureCompressionASTC_LDR
feature was incorrectly set to true. Fix this by setting it to false and
don't advertise ASTC support for texture compression.
Fixes dEQP-VK.api.info.format_properties.compressed_formats
Fixes:
8991e646 ("pvr: Add a Vulkan driver for Imagination Technologies PowerVR Rogue GPUs")
Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24448>
antonino [Mon, 7 Aug 2023 12:53:50 +0000 (14:53 +0200)]
freedreno: add ci flake
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24539>
antonino [Mon, 7 Aug 2023 12:04:14 +0000 (14:04 +0200)]
virgl: add ci flake
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24539>
Daniel Stone [Fri, 4 Aug 2023 11:39:40 +0000 (12:39 +0100)]
panfrost/vk: Use correct sampler dimensions for MSAA
2D-MS samplers are SAMPLER_DIM_MS, not SAMPLER_DIM_2D. There is no MSAA
for non-2D textures.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Closes: mesa/mesa#9474
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24494>
Lionel Landwerlin [Sat, 5 Aug 2023 09:31:58 +0000 (12:31 +0300)]
anv: enable INTEL_DEBUG=nofc
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24510>
Iago Toral Quiroga [Thu, 3 Aug 2023 06:37:58 +0000 (08:37 +0200)]
v3dv: drop cpu path for buffer to image copies
We really want to avoid cpu jobs as much as possible. Also,
the texel buffer path we have for this should be able to
handle most cases.
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24466>
Chris Spencer [Sun, 6 Aug 2023 20:54:38 +0000 (21:54 +0100)]
radv: initialize result when pipeline cache creation fails
Signed-off-by: Chris Spencer <spencercw@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24521>
Dave Airlie [Mon, 7 Aug 2023 01:01:27 +0000 (11:01 +1000)]
zink: use fprintf instead of printf to align the requirements warnings
This just seems to have been overlooked and nvk triggers it right now.
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24527>
Mike Blumenkrantz [Thu, 3 Aug 2023 17:11:57 +0000 (13:11 -0400)]
zink: force image barriers after dmabuf import
if the image will be used, then it has to be on the right queue
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24492>
Mike Blumenkrantz [Fri, 4 Aug 2023 16:17:20 +0000 (12:17 -0400)]
zink: better handle separate shader dsl creation when no bindings exist
this otherwise underflows the array and provides a (probably huge) garbage
value for the binding id, which then causes the driver to massively overallocate
both the layout and set/pool/buffer
the main result of this is that on radv any simple test that should be near-instant
takes 2-3 seconds to execute, which somehow nobody noticed
Fixes:
e3b746e3a31 ("zink: use GPL to handle (simple) separate shader objects")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24501>
Dave Airlie [Sun, 6 Aug 2023 21:53:50 +0000 (07:53 +1000)]
docs: add two nvk exts to features.txt
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24523>
Jordan Justen [Wed, 28 Dec 2022 21:48:53 +0000 (13:48 -0800)]
intel/decoder: Make intel_spec_load_filename() have separate dir and name strings
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20889>
Jordan Justen [Wed, 28 Dec 2022 21:26:34 +0000 (13:26 -0800)]
intel/decoder: Add intel_spec_load_common()
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20889>
Jordan Justen [Wed, 28 Dec 2022 18:20:20 +0000 (10:20 -0800)]
intel/decoder: Fix xml filename when verx10 % 10 is not 0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20889>
Gert Wollny [Sun, 6 Aug 2023 18:42:07 +0000 (20:42 +0200)]
r600/sfn: Take source uses into account when switching channels
When we switch the channels by re-creating vec4 values we have to
take into account that the source values may be used in an ALU op,
and with that we have to take read-port limitations into account.
Fixes:
18a8d148d862d4a0f5b83f4385f00cf8a4a71b6d
r600/sfn: Cleanup copy-prop into vec4 source values
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24519>
Faith Ekstrand [Sun, 6 Aug 2023 16:35:26 +0000 (11:35 -0500)]
nvk: Call nir_lower_int64
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24518>
Faith Ekstrand [Sun, 6 Aug 2023 16:55:43 +0000 (11:55 -0500)]
nvk: Use more consistent device variable names
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24518>
David Heidelberg [Sat, 5 Aug 2023 07:54:43 +0000 (10:54 +0300)]
ci/freedreno: document another flakes on Adreno 530
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24511>
Karol Herbst [Wed, 2 Aug 2023 13:34:29 +0000 (15:34 +0200)]
nv50/ir: convert system values to gl_system_value
Signed-off-by: Karol Herbst <git@karolherbst.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24447>
Karol Herbst [Wed, 2 Aug 2023 13:32:37 +0000 (15:32 +0200)]
nv50/ir: use own info struct for sys vals
This makes it more obvious what's actually needed by the driver and allows
us to drop some code in the nir to nvir step.
Signed-off-by: Karol Herbst <git@karolherbst.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24447>
Faith Ekstrand [Thu, 3 Aug 2023 23:32:45 +0000 (18:32 -0500)]
nvk: Enable the new UAPI
We also add a meson option to disable it and re-enable the legacy API.
This code probably won't last long but it gives developers the option.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Fri, 4 Aug 2023 17:03:16 +0000 (12:03 -0500)]
nvk: Print an error message if VM_BIND support is missing
This should prevent a lot of bug reports.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Fri, 4 Aug 2023 16:59:21 +0000 (11:59 -0500)]
nouveau/winsys: Allow nouveau_ws_device_new() without VM_BIND
Silently fall back to non-VM_BIND. The client can check for the
has_vm_bind flag in the device to detect whether VM_BIND is actually
available or not.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Sun, 23 Jul 2023 23:38:44 +0000 (09:38 +1000)]
nvk: add new internal bo allocation flag.
This is to allow the kernel to use a single resv object, this might
need more work.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Fri, 21 Jul 2023 20:03:25 +0000 (15:03 -0500)]
nvk: Use an empty EXEC for the empty submit case
The new UAPI allows for an EXEC with zero pushes just fine so we no
longer need the no-op push just for synchronization. This lets us drop
the whole empty push we allocate per-queue as well.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Thu, 20 Jul 2023 04:52:00 +0000 (14:52 +1000)]
nvk: enable sparse residency buffer on maxwell+
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Wed, 19 Jul 2023 01:27:33 +0000 (11:27 +1000)]
nvk: enable a bunch of external fence/semaphore bits
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Tue, 10 Jan 2023 22:20:10 +0000 (08:20 +1000)]
nvk: enable sparse features
There is a bug on my turing with
dEQP-VK.sparse_resources.buffer.ssbo.sparse_residency.buffer_size_2_24
but none of the others and we aren't seeing it on some other devices.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Wed, 22 Mar 2023 03:14:37 +0000 (13:14 +1000)]
nvk: Handle pre-turing indirect buffers with sparse
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Tue, 10 Jan 2023 22:19:41 +0000 (08:19 +1000)]
nvk/queue: add support for syncobjs and sparse binds
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Tue, 10 Jan 2023 22:18:44 +0000 (08:18 +1000)]
nvk: Add support for sparse images
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Wed, 19 Jul 2023 21:45:27 +0000 (16:45 -0500)]
nvk: Add support for sparse buffers
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Mon, 24 Jul 2023 19:26:09 +0000 (14:26 -0500)]
nouveau/mme: Support the new UAPI
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Tue, 10 Jan 2023 22:12:22 +0000 (08:12 +1000)]
nouveau/winsys: add support for the vma bind interfaces
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Wed, 2 Nov 2022 06:54:33 +0000 (16:54 +1000)]
nvk: always sync internal cmd bufs for vma lifetimes.
We always sync on the internal push buf submissions for zero vram
and ctx setup, these shouldn't be bottlenecks.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Mon, 31 Jul 2023 13:42:46 +0000 (08:42 -0500)]
nouveau/shim: Use the imported nouveau_drm.h headers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Mon, 31 Jul 2023 13:42:14 +0000 (08:42 -0500)]
nvk: Use the imported nouveau_drm.h headers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Mon, 31 Jul 2023 13:30:57 +0000 (08:30 -0500)]
nouveau/winsys: Use the imported nouveau_drm.h headers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Mon, 31 Jul 2023 13:22:50 +0000 (08:22 -0500)]
drm-uapi: Import nouveau_drm.h
From https://cgit.freedesktop.org/drm-misc/
commit
e02238990b1ab2dfc8abb4c28369f1da6e863f81
Author: Danilo Krummrich <dakr@redhat.com>
Date: Fri Aug 4 20:23:43 2023 +0200
drm/nouveau: new VM_BIND uAPI interfaces
Signed-off-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Fri, 4 Aug 2023 16:17:14 +0000 (11:17 -0500)]
nouveau: Move shader topology info to nv_device_info
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Fri, 4 Aug 2023 15:46:05 +0000 (10:46 -0500)]
nvk: Decorate CmdBegin/EndRendering entrypoints
These decorations are necessary for proper building on Android and
Windows. You don't notice them in regular Linux builds, though.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Fri, 4 Aug 2023 15:45:25 +0000 (10:45 -0500)]
nvk: Implement GetRenderingAreaGranularityKHR
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Fri, 4 Aug 2023 15:43:15 +0000 (10:43 -0500)]
nvk: Implement CmdBindIndexBuffer2KHR
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Fri, 4 Aug 2023 15:41:23 +0000 (10:41 -0500)]
nvk: Use VkBufferUsageFlags2
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Fri, 4 Aug 2023 15:35:24 +0000 (10:35 -0500)]
nvk: Implement the maintenance5 image layout queries
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Wed, 2 Aug 2023 16:36:41 +0000 (11:36 -0500)]
nvk: Rework memory requirements to handle aspects correctly
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Fri, 4 Aug 2023 00:54:35 +0000 (19:54 -0500)]
nvk: Misc. style nits
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Wed, 26 Jul 2023 07:37:37 +0000 (17:37 +1000)]
nvk: enable EXT_depth_clip_enable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Wed, 26 Jul 2023 07:27:43 +0000 (17:27 +1000)]
nvk: enable EXT_depth_clip_control
This is already handled in the dynamic state.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Wed, 2 Aug 2023 16:48:22 +0000 (11:48 -0500)]
nvk: Implement CopyQueryPoolResults with a compute shader
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Wed, 2 Aug 2023 16:47:26 +0000 (11:47 -0500)]
nvk: Separate the MME query copy code out a bit
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Wed, 2 Aug 2023 15:48:23 +0000 (10:48 -0500)]
nvk: Enable the SPIR-V DeviceGroup capability
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Wed, 2 Aug 2023 12:26:10 +0000 (07:26 -0500)]
nvk: Add support for variable pointers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Wed, 2 Aug 2023 11:27:44 +0000 (06:27 -0500)]
nvk: Add a root_desc_addr to the root descriptor table
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Wed, 2 Aug 2023 14:54:47 +0000 (09:54 -0500)]
nvk: Use nvk_root_descriptor_offset for drawInfoBase
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Wed, 2 Aug 2023 09:34:10 +0000 (04:34 -0500)]
nvk: Rework multi-plane format features a bit
We need to avoid returning certain feature flags such as rendering or
storage from vkGetPhysicalDeviceFormatFeatures*() but still allow those
for single-plane views of the image which means allowing them in
vkGetPhysicalDeviceImageFormatProperties*().
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Wed, 2 Aug 2023 04:49:24 +0000 (23:49 -0500)]
nvk: Improve image format properties and limits
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Mohamed Ahmed [Tue, 4 Jul 2023 22:46:06 +0000 (01:46 +0300)]
nouveau/nvk: Enable VK_KHR_sampler_ycbcr
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Mohamed Ahmed [Tue, 25 Jul 2023 11:51:46 +0000 (14:51 +0300)]
nouveau/nvk: Add multiple sampler planes for CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Mohamed Ahmed [Sat, 29 Jul 2023 20:55:51 +0000 (23:55 +0300)]
nouveau/nvk: Create helper function for sampler creation
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Mohamed Ahmed [Thu, 27 Jul 2023 09:46:22 +0000 (12:46 +0300)]
nouveau/nvk: Support multi-plane descriptors in nvk_nir_lower_descriptors.c
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Mohamed Ahmed [Tue, 25 Jul 2023 22:17:45 +0000 (01:17 +0300)]
nouveau/nvk: Add YCbCr sampler NIR lowering pass
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Tue, 1 Aug 2023 23:26:43 +0000 (18:26 -0500)]
nvk: Use the new NIL helper for image level extents for copies
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Tue, 1 Aug 2023 23:25:55 +0000 (18:25 -0500)]
nil: Add a nil_image_level_extent_px() helper
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Thu, 20 Jul 2023 05:35:12 +0000 (15:35 +1000)]
nvk: enable rgb32 texel buffer support
This is needed for zink.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Emma Anholt [Tue, 18 Jul 2023 18:37:14 +0000 (11:37 -0700)]
nvk: Disable shaderStorageImageReadWithoutFormat pre-Maxwell.
On Kepler and earlier, image loads must get lowered based on the declared
format, since we don't have a SULDP op.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Mon, 31 Jul 2023 22:27:40 +0000 (17:27 -0500)]
nouveau: Drop GART size from nv_device_info
The kernel always returns something rediculously high, like 40 bits or
something. There's really no point in us tracking it.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
George Ouzounoudis [Sun, 30 Jul 2023 12:31:56 +0000 (15:31 +0300)]
nouveau/codegen: Do not keep redundant info for tessellation domain
Just add an assert instead.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
George Ouzounoudis [Sun, 30 Jul 2023 12:29:34 +0000 (15:29 +0300)]
nvk: Do not keep redundant info for tessellation domain
This is not needed after merge_tess_info that or's the info of both the
tesc and tese shaders.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Dave Airlie [Mon, 31 Jul 2023 07:37:15 +0000 (17:37 +1000)]
nvk: fix independent color write masks.
This fixes:
dEQP-VK.renderpass.suballocation.attachment_write_mask.attachment_count_*
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Thu, 27 Jul 2023 21:03:38 +0000 (16:03 -0500)]
docs/relnotes: Stick something about NVK in new_features.txt
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Thu, 27 Jul 2023 21:01:31 +0000 (16:01 -0500)]
docs: Add NVK to features.txt
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Thu, 27 Jul 2023 21:17:43 +0000 (16:17 -0500)]
docs: Add a docs page for NVK
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
Faith Ekstrand [Thu, 27 Jul 2023 22:06:57 +0000 (17:06 -0500)]
nvk: Don't skip zero-size bindings in GetDescriptorSetLayoutSupport
We still need to handle them in the case of variable descriptor counts.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>