Felix DeGrood
b9c9fb7259
anv: fix frame count reporting in INTEL_MEASURE
...
Report frame count at CB submit time, instead of CB build time.
Reviewed-by: Mark Janes <markjanes@swizzler.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25235 >
2023-09-22 22:41:53 +00:00
Faith Ekstrand
6f85e6b06b
nvk: Disable statistics around meta ops
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25353 >
2023-09-22 21:23:11 +00:00
Faith Ekstrand
169835da39
nvk: Lower interp_at_sample to interp_at_offset
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25353 >
2023-09-22 21:23:10 +00:00
Frank Binns
53ed2ff742
pvr: remove pvr_pbe_get_src_pos()
...
This should have been removed as part of f59c6eef16 ("pvr: Move PBE START_POS
into csb enum helpers header").
Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25328 >
2023-09-22 21:03:43 +00:00
Frank Binns
6619802446
pvr: treat VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT as not supported
...
The required compiler support is missing for mutable format support, so return a
not supported error from vkGetPhysicalDeviceImageFormatProperties2() when the
VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT flag is set in the image format info
structure.
This results in the dEQP-VK.image.mutable.* conformance tests being treated as
Not Supported.
Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25241 >
2023-09-22 20:47:17 +00:00
Mike Blumenkrantz
865bdc3da2
lavapipe: set default min sample shading to 1
...
this should only affect shobj handling and even then probably no effect
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25354 >
2023-09-22 20:03:06 +00:00
Mike Blumenkrantz
a2a848cb19
lavapipe: set default viewport and scissor count for cmdbufs
...
this otherwise breaks shobj tests
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25354 >
2023-09-22 20:03:05 +00:00
Mike Blumenkrantz
0d975219ad
lavapipe: more vertex stride fixups
...
for handling cases where bind2 and dynamic vi are used interchangeably
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25354 >
2023-09-22 20:03:05 +00:00
Mike Blumenkrantz
94debd4b4c
lavapipe: always set independent blend
...
no functional changes, but this is just how vulkan works
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25354 >
2023-09-22 20:03:05 +00:00
Mike Blumenkrantz
74ac66c275
lavapipe: fix variable descriptor count support handling
...
if no variable counts are present this must be zero, otherwise yolo
fixes:
dEQP-VK.api.maintenance3_check.support_count_combined_image_sampler_extra_bindings_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_combined_image_sampler_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_inline_uniform_block_extra_bindings_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_inline_uniform_block_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_input_attachment_extra_bindings_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_input_attachment_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_sampled_image_extra_bindings_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_sampled_image_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_sampler_extra_bindings_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_sampler_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_storage_buffer_dynamic_extra_bindings_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_storage_buffer_dynamic_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_storage_buffer_extra_bindings_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_storage_buffer_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_storage_image_extra_bindings_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_storage_image_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_storage_texel_buffer_extra_bindings_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_storage_texel_buffer_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_uniform_buffer_dynamic_extra_bindings_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_uniform_buffer_dynamic_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_uniform_buffer_extra_bindings_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_uniform_buffer_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_uniform_texel_buffer_extra_bindings_no_variable_size
dEQP-VK.api.maintenance3_check.support_count_uniform_texel_buffer_no_variable_size
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25354 >
2023-09-22 20:03:05 +00:00
Mike Blumenkrantz
207b37bfd9
zink: always trace_screen_unwrap in acquire
...
it's possible for acquire to be called from the frontend, in which
case the screen will still be trace-wrapped
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25288 >
2023-09-22 19:34:21 +00:00
Mike Blumenkrantz
aaabb5b0f2
zink: avoid UAF on wayland async present with to-be-retired swapchain
...
wayland surfaces are likely to become unlinked in WSI implementations upon
retiring a swapchain, requiring the pending present to complete
in order to avoid invalid access
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25288 >
2023-09-22 19:34:21 +00:00
Mike Blumenkrantz
2b7b1059e4
zink: move swapchain fence to swapchain object
...
this is more accurate in terms of usage/ownership and avoids potential
illegal fence usage in the scenario where multiple async presents are
in flight
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25288 >
2023-09-22 19:34:21 +00:00
Rob Clark
e24a710c1e
freedreno/decode: Remove gpu_id
...
Now unused.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25333 >
2023-09-22 19:17:14 +00:00
Rob Clark
066f80e31c
freedreno/decode: Use info->chip to decode
...
Use the chip generation in cases where decoding is generation specific,
rather than range testing gpu_id.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9310
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25333 >
2023-09-22 19:17:14 +00:00
Rob Clark
ebdac80b0d
freedreno/decode: Lookup device info
...
First step for migration to chip_id. With newer devices we won't be
able to decode the chip_id in any meaningful way, ie. it is just a
number. But we can use the device table to figure out things like
generation which are needed to properly decode cmdstream, etc.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25333 >
2023-09-22 19:17:14 +00:00
Caio Oliveira
ae99a3d76c
util: Add more PRINTFLIKE and MALLOCLIKE annotations
...
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25230 >
2023-09-22 10:47:33 -07:00
Caio Oliveira
931253b45d
microsoft/compiler: Fix printf formatting string issues
...
Found when adding PRINTFLIKE macro to util functions.
Suggested-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25230 >
2023-09-22 10:47:33 -07:00
Caio Oliveira
1cdc4be14b
intel/compiler: Don't allocate memory for SIMD select error handling
...
The position in the error array already indicate the SIMD in question,
so take off all the formatted printing from the errors -- which in some
cases were just not needed. We lose a little bit of extra context but
it is all easily derivable from the message and the SIMD.
This also will remove the overhead when SIMD selection is being used to
just to find the selected dispatch width -- at a point where the shaders
were already compiled -- and the errors are not used at all.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9849
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25336 >
2023-09-22 16:23:02 +00:00
Caio Oliveira
e55aa87f32
compiler: Only enable mesaclc helper if we have OpenCL SPIR-V support
...
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25341 >
2023-09-22 15:29:25 +00:00
Caio Oliveira
4e065cdaaa
clover: Only compile/depend libclspirv and libclnir when using SPIR-V support
...
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25341 >
2023-09-22 15:29:25 +00:00
Caio Oliveira
3a210932ad
clover: Hide SPIR-V related code behind HAVE_CLOVER_SPIRV
...
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25341 >
2023-09-22 15:29:25 +00:00
Caio Oliveira
0e7337e830
rusticl: Ensure NIR generated headers will be available
...
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25314 >
2023-09-22 14:52:50 +00:00
Caio Oliveira
3988d901ac
meson: Remove unnecessary inc_compiler mentions
...
The inc_compiler should come as part of idep_compiler, idep_nir or
idep_nir_headers dependency.
Acked-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> (v3dv)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25314 >
2023-09-22 14:52:50 +00:00
Caio Oliveira
ec835595f0
compiler: Use a meson dependency for libcompiler
...
That will make sure the include directories are passed on and also
make sure the generated headers are properly built before whoever code
depends on it. NIR dependency propagates that dependency too.
Since the right include directory is always propagated, we can remove
the extra "compiler/" prefix from the `#include`s in glsl_types.h.
Note: NIR has a special "header only" dependency, so include the
generated headers for compiler there too.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9843
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25314 >
2023-09-22 14:52:50 +00:00
Helen Koike
9442571664
ci: separate hiden jobs to -inc.yml files
...
make it easier to re-use the hidden jobs by other project (e.g. linux)
without enabling the executable jobs.
Signed-off-by: Helen Koike <helen.koike@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25238 >
2023-09-22 14:12:29 +00:00
Mike Blumenkrantz
17dfbb6ce7
zink: fix semaphore signal ordering
...
the timeline semaphore must always be on the last submit in order to
mimic fence behavior
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25334 >
2023-09-22 12:55:39 +00:00
Mike Blumenkrantz
12778fc99f
zink: add a ZINK_DEBUG=validation alias
...
typing validation all the time makes my hands hurt
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25290 >
2023-09-22 12:29:27 +00:00
Mike Blumenkrantz
fe43e63974
zink: set workgroup_memory_explicit_layout for shader validation
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25290 >
2023-09-22 12:29:27 +00:00
Mike Blumenkrantz
5d90b1db70
lavapipe: set separate_shaders for shader objects
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25292 >
2023-09-22 11:59:12 +00:00
Mike Blumenkrantz
cf903ff79b
zink: delete a non-maintenance5 workaround for shobj use
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25289 >
2023-09-22 11:34:03 +00:00
Mike Blumenkrantz
3c50b93efe
zink: require maintenance5 for shobj
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25289 >
2023-09-22 11:34:03 +00:00
Mike Blumenkrantz
792d76feb1
zink: delete injected pointsize during shader creation
...
maintenance5 is best maintenance.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25289 >
2023-09-22 11:34:03 +00:00
Konstantin Seurer
51e067d9e5
lavapipe/ci: Fix asan expectations
...
Those failures were fixed in b2f6de8f0d .
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25309 >
2023-09-22 10:46:21 +00:00
Konstantin Seurer
be8a73f40d
nir/deref: Layer rematerialization helpers
...
nir_rematerialize_derefs_in_use_blocks_impl can be implemented on top of
nir_rematerialize_deref_in_use_blocks.
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23712 >
2023-09-22 10:05:58 +00:00
Konstantin Seurer
439e8c42cc
nir/lcssa: Fix rematerializing derefs
...
This would pull derefs out of loops by emitting the pattern
`deref(phi(deref))` which is not allowed by nir_validate.
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23712 >
2023-09-22 10:05:58 +00:00
Konstantin Seurer
29dc1b193a
nir: Add nir_rematerialize_deref_in_use_blocks
...
nir_rematerialize_deref_in_use_blocks can be used in passes that don't
run on the whole function.
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23712 >
2023-09-22 10:05:58 +00:00
Rhys Perry
ba809dccb8
nir/deref: remove rematerialize_deref_in_block cache
...
Nothing was ever inserted into this.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23712 >
2023-09-22 10:05:58 +00:00
Konstantin Seurer
ab1310e84d
nir: Add nir_foreach_block_in_cf_node_reverse
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23712 >
2023-09-22 10:05:58 +00:00
Konstantin Seurer
70e497a2ac
nir: Add nir_cf_node_cf_tree_prev
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23712 >
2023-09-22 10:05:58 +00:00
Eric Engestrom
01f6afb01a
ci/zink+radv: bump the timeout of zink-radv-navi10-valve by 10 minutes
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25342 >
2023-09-22 09:35:38 +00:00
Eric Engestrom
e7c977503c
ci/zink+radv: specify that zink-radv-navi10-valve should run in the mupuf farm
...
Fixes: 8c98ee6f3a ("radv/ci: move vkcts-navi10 testing to KWS")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25342 >
2023-09-22 09:35:38 +00:00
Corentin Noël
c891c1fdce
virgl: Cover all the formats defined in the virgl definition
...
Add all the formats currently defined in u_formats.h
Also make sure that no format on virgl protocol has the same number as another one.
Make so that the virgl_formats_conv_table is following the same order as virgl_formats
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25295 >
2023-09-22 07:35:57 +00:00
Konstantin Seurer
24555cdbbd
aco/spill: Make sure that offset stays in bounds
...
If a shader spills a lot, the offset can be above the HW limit.
cc: mesa-stable
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24652 >
2023-09-22 06:30:01 +00:00
Rob Clark
9510af0f60
freedreno/fence: Hold a strong ref to batch
...
We don't want a unflushed fence to outlive it's batch, otherwise we run
into trouble when it comes time to wait on the fence. For ex:
1. Create a fence before framebuffer state is set, with the
PIPE_FLUSH_DEFERRED flags. This creates a new batch, to which the
ctx holds the only reference (unless the fence also holds a ref)
2. set_framebuffer_state() creates a new batch and drops the ctx->batch
reference.
3. Later something tries to wait on the fence
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8621
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25337 >
2023-09-22 02:07:36 +00:00
Rob Clark
86f5077538
freedreno: Add reformatting commits to .git-blame-ignore-revs
...
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25337 >
2023-09-22 02:07:36 +00:00
Timothy Arceri
dedb2f0208
glsl: remove unused validate_first_and_last_interface_explicit_locations()
...
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25318 >
2023-09-22 00:41:18 +00:00
Timothy Arceri
7b744bb8df
glsl: switch to nir validate_first_and_last_interface_explicit_locations()
...
Use the new nir version. The glsl ir version will be removed in the
following patch.
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25318 >
2023-09-22 00:41:18 +00:00
Timothy Arceri
92f24e6cdc
glsl: add nir version of validate_first_and_last_interface_explicit_locations()
...
The glsl ir version will be removed in a following commit.
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25318 >
2023-09-22 00:41:18 +00:00
Timothy Arceri
8bf5c39994
glsl: move get_varying_type() declaration earlier
...
Required for the following patch to keep this file somewhat organised.
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25318 >
2023-09-22 00:41:18 +00:00