Konstantin Seurer
1ddf8378cb
aco/validate: Handle p_wqm like p_parallelcopy
...
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24906 >
2023-09-01 07:23:32 +00:00
Samuel Pitoiset
e104718c9f
aco: allow separate compilation of NGG shaders
...
Also prevent to emit a long-jump for VS as NGG without a GS.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24907 >
2023-09-01 06:52:40 +00:00
Samuel Pitoiset
ee8ba0f98f
aco: adjust fix_exports() for VS/TES as NGG and non-monolithic shaders
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24907 >
2023-09-01 06:52:40 +00:00
Samuel Pitoiset
bfb39031f1
aco: flag blocks with long-jump as export_end for separate compilation
...
This will allow us to adjust fix_exports().
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24907 >
2023-09-01 06:52:40 +00:00
Samuel Pitoiset
05185e8412
radv: preserve shader argument for separate compilation of NGG shaders
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24907 >
2023-09-01 06:52:40 +00:00
Qiang Yu
1f3858509c
radeonsi: enable aco compile for part mode standalone vs
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24713 >
2023-09-01 04:44:32 +00:00
Qiang Yu
287f7a9c35
radeonsi: set vs has prolog aco shader info
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24713 >
2023-09-01 04:44:32 +00:00
Qiang Yu
4247b742ec
radeonsi: add vs prolog aco build
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24713 >
2023-09-01 04:44:32 +00:00
Qiang Yu
8c3b5ce0c4
radeonsi: fix aco options has_ls_vgpr_init_bug setup
...
Fixes: b313d950e2 ("radeonsi: enable aco compile for mono merged LS/HS")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24713 >
2023-09-01 04:44:32 +00:00
Qiang Yu
ec57236824
radeonsi: extract si_get_vs_prolog_args to be shared with aco
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24713 >
2023-09-01 04:44:32 +00:00
Qiang Yu
07b62af810
radeonsi: remove is_monolithic from vs prolog key
...
We do not generate vs prolog for monolithic shader any more.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24713 >
2023-09-01 04:44:32 +00:00
Dave Airlie
b5d9c4ef4f
nvk: add build_id linker argument.
...
the build id was failing for a gentoo build causing instance
creation to fail, this seems to fix it.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24916 >
2023-09-01 04:00:13 +00:00
Qiang Yu
4c10bf1e6d
radeonsi: fill aco_shader_info->is_monolithic
...
Fixes: 80177e0296 ("aco: add support for compiling VS+TCS separately on GFX9+")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24944 >
2023-09-01 03:06:03 +00:00
Karol Herbst
667375999c
rusticl/event: disable profiling for devices without timestamps
...
Timestamp queries are strictly required, but a bit odd to not expose CL
for not supporting it...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24938 >
2023-09-01 02:48:55 +00:00
Karol Herbst
8e4d51aa1f
rusticl/query: fix use-after-free, but also fix incorrect usage of unsafe
...
`PipeQuery::new` create a `PipeQuery` wrapper before handling errors, so
we ended up calling `drop` and destroy_query, meaning the latter ended up
being called twice.
While at it, also restrict visibility of related methods and add some
unsafe declarations.
Fixes: 52e53938c3 ("rusticl: Wrap pipe queries")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24938 >
2023-09-01 02:48:55 +00:00
Lina Versace
6d3a7c1773
docs: Add row for VK_KHR_maintenance5
...
Reviewed-By: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24980 >
2023-09-01 01:36:55 +00:00
Matt Turner
01f5fd36c8
intel: Only build perf if drivers or tools are enabled
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24974 >
2023-08-31 21:53:19 +00:00
Matt Turner
ce7d41bbc5
intel: Only build ds if drivers are enabled
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24974 >
2023-08-31 21:53:19 +00:00
Matt Turner
60d01cb1af
intel: Only build blorp if drivers are enabled
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24974 >
2023-08-31 21:53:19 +00:00
Matt Turner
4f89c1dafd
intel: Consider with_intel_clc in with_any_intel
...
This makes it possible to configure mesa to build only intel_clc.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24974 >
2023-08-31 21:53:19 +00:00
Matt Turner
37b88a72fb
intel: Rearrange for next commit
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24974 >
2023-08-31 21:53:19 +00:00
Lang Yu
f2c8cb2649
radeonsi: use wave size to determine index stride
...
Signed-off-by: Lang Yu <lang.yu@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24920 >
2023-08-31 20:30:03 +00:00
Lang Yu
42abb231aa
radeonsi: use AMD_CODE_PROPERTY_ENABLE_WAVEFRONT_SIZE32 to determine wave size
...
Signed-off-by: Lang Yu <lang.yu@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24920 >
2023-08-31 20:30:03 +00:00
Lang Yu
11106bab1b
amd/common: add AMD_CODE_PROPERTY_ENABLE_WAVEFRONT_SIZE32 property
...
This property can be used to determine wave size on gfx10+.
Signed-off-by: Lang Yu <lang.yu@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24920 >
2023-08-31 20:30:03 +00:00
Connor Abbott
2ee3367dc9
freedreno/a7xx: Add CP_RESET_CONTEXT_STATE
...
Used by the kernel driver. Definition taken from kgsl.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24969 >
2023-08-31 18:41:04 +00:00
Mike Blumenkrantz
9bd2fabee9
egl: bind dri2_set_WL_bind_wayland_display for zink when necessary
...
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24701 >
2023-08-31 17:54:26 +00:00
Mike Blumenkrantz
4e7c7656f3
egl: call dri3_x11_connect() for zink
...
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24701 >
2023-08-31 17:54:26 +00:00
Mike Blumenkrantz
a31922b785
egl/dri3: only set driver_name if not already set
...
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24701 >
2023-08-31 17:54:26 +00:00
Eric Engestrom
223c36e7db
ci/b2c: assert that install folder is present whether or not the tarball was extracted
...
We already `rm -rf install` at the beginning so it can't be a stale install folder.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24970 >
2023-08-31 17:18:22 +00:00
Eric Engestrom
e17f3a2b5a
ci/b2c: don't allow failures in test script preparation
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24970 >
2023-08-31 17:18:22 +00:00
Eric Engestrom
95a9f66f30
ci/b2c: skip install.tar extraction if the tarball is not present
...
This is the case when retrying after a B2C_TIMEOUT for instance.
Fixes: 85a8f03211 ("ci: delete install.tar after extracting it to avoid re-uploading it")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24970 >
2023-08-31 17:18:22 +00:00
Friedrich Vock
728f6c0b70
radv/rt: Pre-initialize instance address
...
It's not disallowed by spec to load instance-related data in case of a
miss where no instance was ever visited. Such loads make no sense, so we
can return garbage, but it mustn't hang the GPU. Initialize the instance
addresses to the TLAS base to make sure we always have valid memory to load from.
Partially fixes GPU hangs in RTX Remix games.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24971 >
2023-08-31 16:29:52 +00:00
Eric Engestrom
9b87912f62
ci: document farm rules
...
Signed-off-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24898 >
2023-08-31 15:33:17 +00:00
Karol Herbst
1a20ac7891
rusticl/disk_cache: fix stack corruption
...
The length passed to mesa_bytes_to_hex is the one of the input, not output
data.
Fixes: fbe9a7ca3e ("rusticl/mesa: create proper build-id hash for the disk cache")
Signed-off-by: Karol Herbst <git@karolherbst.de>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24967 >
2023-08-31 15:17:50 +00:00
Lionel Landwerlin
bcc0ec8e6c
anv: enable KHR_maintenance5
...
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24387 >
2023-08-31 16:02:52 +03:00
Lionel Landwerlin
688bb37552
anv: deal with new pipeline flags
...
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24387 >
2023-08-31 16:02:52 +03:00
Lionel Landwerlin
bbd5baa326
anv: add maintenance5 A8_UNORM/A1B5G5R5_UNORM support
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24387 >
2023-08-31 16:02:52 +03:00
Lionel Landwerlin
fb61bb6af4
anv: implement GetDeviceImageSubresourceLayoutKHR/GetImageSubresourceLayout2KHR
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24387 >
2023-08-31 16:02:52 +03:00
Lionel Landwerlin
8b662d41b4
anv: add vkGetRenderingAreaGranularityKHR()
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24387 >
2023-08-31 16:02:52 +03:00
Lionel Landwerlin
4bd864c487
anv: handle new VkBufferViewUsageCreateInfoKHR
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24387 >
2023-08-31 16:02:52 +03:00
Lionel Landwerlin
5c2aca456e
anv: implement vkCmdBindIndexBuffer2KHR
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24387 >
2023-08-31 16:02:52 +03:00
Connor Abbott
ceb1d81763
vk/graphic_state, tu: Use dynamic blend count from subpass
...
A future spec clarification will state that pipelines will not have to
fill out the blend attachment count if every blend state is dynamic.
Instead, this comes from the subpass/rendering/inheritance info. To fix
this while still being able to use the same code to emit dynamic and
precompiled state, we have to set the attachment count in the blend
struct at the beginning of the subpass.
This will also help with ESO where it already worked like this.
Closes : #9709
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24957 >
2023-08-31 08:54:04 +00:00
Konstantin Seurer
8bc0f6be67
lavapipe: Fix the locking around cso destruction
...
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24956 >
2023-08-31 07:54:44 +00:00
Konstantin Seurer
3d0ed8bb26
lavapipe: Avoid lowering shaders twice
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9726
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24956 >
2023-08-31 07:54:44 +00:00
Dave Airlie
55e348b879
llvmpipe/fs: rewrite output finding using nir.
...
Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24817 >
2023-08-31 07:13:33 +00:00
Dave Airlie
89451e79cd
llvmpipe/fs: drop the simple shader logic
...
It's been turned off since 2013.
Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24817 >
2023-08-31 07:13:33 +00:00
Dave Airlie
a63c2daf7a
llvmpipe/fs: start using nir info in some places.
...
Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24817 >
2023-08-31 07:13:33 +00:00
Dave Airlie
f36488a406
llvmpipe/analyse: drop TGSI path.
...
This drop the AERO path, this should probably be reworked using NIR.
Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24817 >
2023-08-31 07:13:33 +00:00
Dave Airlie
d2c4b8b32a
llvmpipe/fs: switch to using tgsi->nir instead of handling tgsi
...
This just swaps, lots of cleanup after this.
Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24817 >
2023-08-31 07:13:33 +00:00
Roman Stratiienko
17f7ffcb36
android: Fix num_planes assignment in u_gralloc_fallback
...
That seems to be an uncaught porting issue from EGL code to a common.
Fixes: ee42e2166d ("android: Introduce the Android buffer info abstraction")
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24953 >
2023-08-31 04:03:06 +00:00