Iago Toral Quiroga
46dd903cc6
v3dv: flag BCL barriers for all-graphics and all-commands stages
...
Since these also include geometry stages in the pipeline.
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16322 >
2022-05-05 09:06:50 +00:00
Iago Toral Quiroga
1571954be9
v3dv: drop default sampler states if not used
...
If a shader doesn't use any samplers (including default sampler states),
make sure we drop them so other parts of the driver can recognize that
the program doesn't actually use any samplers at all.
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16322 >
2022-05-05 09:06:50 +00:00
Samuel Pitoiset
9348620946
radv: disable instance packing to fix pipeline query stats
...
RDNA2 is affected by a hardware bug when instance packing is enabled
for adjacent primitive topologies and instance_count > 1, pipeline
stats generated by GE are incorrect. It needs to be applied for
indexed and non-indexed draws.
This is based on PAL waDisableInstancePacking.
This fixes KHR-GL46.pipeline_statistics_query_tests_ARB.* with Zink.
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6257
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15877 >
2022-05-05 09:39:23 +02:00
Guilherme Gallo
7a6d85299c
ci: Fix tests expectations
...
For some days, the CI was bypassing LAVA and bare-metal jobs due to an
issue in the init-stage2.sh script. After the fix some tests
crashed/failed. This commit updates the expectations for them.
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16325 >
2022-05-04 23:39:15 +00:00
Guilherme Gallo
57f21b5039
ci: Update trace after CI fix
...
For some days, the CI was bypassing LAVA and bare-metal jobs due to an
issue in the init-stage2.sh script. After the fix the neverball trace on
panfrost-t860 is producing a different image, due to a bugfix in
Mesa itself driver. This commit updates the neverball trace on that
device.
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16325 >
2022-05-04 23:39:15 +00:00
Guilherme Gallo
ea85f6cfda
ci: Fix init-stage2 exit code
...
After a LAVA job submitter rework, the init-stage2.sh was changed to be
compatible with new LAVA job definitions, but the result from the script
represented by `HWCI_TEST_SCRIPT` variable is obfuscated by the `set -e`
command. So when the test script fails, `set` will override the exit
code and the jobs will pass when they should fail.
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16325 >
2022-05-04 23:39:15 +00:00
Dylan Baker
681abdcc57
docs: Add sh256sum for mesa 20.0.3
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336 >
2022-05-04 15:55:22 -07:00
Dylan Baker
6eb129f108
docs: add release notes for 22.0.3
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336 >
2022-05-04 15:55:22 -07:00
Dylan Baker
9b94ef5697
docs: update calendar for 22.1.0-rc4
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336 >
2022-05-04 15:55:22 -07:00
Dylan Baker
e83a8b1d10
docs: update calendar for 22.1.0-rc3
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336 >
2022-05-04 15:55:21 -07:00
Dylan Baker
9543fc1011
docs: Extend calendar entries for 22.1 by 1 releases.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336 >
2022-05-04 15:55:21 -07:00
Dylan Baker
2876359dce
docs: update calendar and link releases notes for 22.0.3
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336 >
2022-05-04 15:55:21 -07:00
Dylan Baker
9e8f516e92
docs: Extend calendar entries for 22.0 by 1 releases.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336 >
2022-05-04 15:55:21 -07:00
Vinson Lee
7f91e8fad9
zink: Fix memory leak on error path.
...
Fix defect reported by Coverity Scan.
Resource leak (RESOURCE_LEAK)
leaked_storage: Variable sampler_view going out of scope leaks the storage it points to.
Fixes: 625457caaf ("zink: handle swapchain acquire failures more directly")
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16258 >
2022-05-04 22:41:48 +00:00
Jason Ekstrand
6214251c03
vulkan/wsi: Add signal_fence/semaphore_for_image helpers
...
These operations are about to get a bit more complex so let's add a
couple nice helpers to keep things clean.
Reviewed-by: Simon Ser <contact@emersion.fr >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333 >
2022-05-04 22:09:02 +00:00
Jason Ekstrand
233be8ee59
vulkan/wsi: Set the right stage flags for semaphore waits
...
This is currently technically broken for compute.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Cc: mesa-stable@lists.freedesktop.org
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333 >
2022-05-04 22:09:02 +00:00
Jason Ekstrand
5f4ee14895
vulkan/wsi: Reset the image fence right before vkQueueSubmit
...
Instead of resetting at the top of the loop, we create the fence in the
signaled state and then unconditionally reset it before vkQueueSubmit.
This gives us a bit more flexibility with how we handle the fence in the
case where the client provides zero semaphores.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Simon Ser <contact@emersion.fr >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333 >
2022-05-04 22:09:02 +00:00
Jason Ekstrand
5576e8b735
vulkan/wsi: Hang on to file descriptors
...
Instead of closing the dma-buf file descriptors immediately after
handing them to the window system, hang on to them. We want to be able
to use them for synchronization.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Simon Ser <contact@emersion.fr >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333 >
2022-05-04 22:09:02 +00:00
Jason Ekstrand
17fb3ad94f
vulkan/wsi: Only use a single fd per wsi_image
...
The only thing this was helping was X11 where the protocol requires that
we pass in an array of images. We can move all the dup() code to the
X11 back-end and leave the others a bit cleaner.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Simon Ser <contact@emersion.fr >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333 >
2022-05-04 22:09:02 +00:00
Jason Ekstrand
c72ff19a9e
vulkan/wsi: Close file descriptors in wsi_destroy_image
...
Most of the time, this is a non-issue because the WSI back-end closes
them as part of handing them to the window-system and sets fds[*] to -1.
The one exception here was Wayland which was closing them but leaving
fds[*] pointing to bogus file descriptors. Having wsi_destroy_image
close them makes clean-up easier and more reliable.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Simon Ser <contact@emersion.fr >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333 >
2022-05-04 22:09:01 +00:00
Mihai Preda
ae6d32c938
gallium: refactor a channel loop in draw_llvm.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
ccbee20f6b
gallivm: LLVM opaque pointers small changes
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
051f588bfe
gallivm: use LLVM opaque pointers in lp_bld_tgsi_aos.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
32a55651cf
gallivm: use LLVM opaque pointers in lp_bld_tgsi_soa.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
c8520c2a8f
gallivm: use LLVM opaque pointers in lp_bld_struct.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
1f636e7fb2
gallivm: use LLVM opaque pointers in lp_bld_sample_soa.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
12cac07fe6
gallivm: use LLVM opaque pointers in lp_bld_sample.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
2a59fdb96d
gallivm: use LLVM opaque pointers in lp_bld_nir_soa.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
36c45736ce
gallivm: use LLVM opaque pointers in lp_bld_gather.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
61da78c311
gallivm: use LLVM opaque pointers in lp_bld_format_s3tc.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
84ba15ac06
gallivm: use LLVM opaque pointers in lp_bld_intr.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
3143f871ac
gallivm: use LLVM opaque pointers in lp_bld_flow.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
1e0ddda796
gallivm: use LLVM opaque pointers in lp_bld_printf.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
2a6e9d13fb
gallivm: use LLVM opaque pointers in lp_bld_coro.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
f1fc0bb567
gallivm: use LLVM opaque pointers in lp_bld_conv.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
6867b184ca
gallivm: use LLVM opaque pointers in lp_bld_format_aos.c
...
Also extract lp_build_const_func_pointer_from_type() in lp_bld_const.h
taking explicit function type.
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
70e9db951d
gallivm: use LLVM opaque pointers in lp_bld_assert.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
1e1ebbe6df
gallivm: use LLVM opaque pointers in lp_bld_arit.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
d53fe793c3
gallium/llvmpipe: use LLVM opaque pointers in lp_bld_depth.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
f90d71f518
gallium/llvmpipe: use LLVM opaque pointers in lp_bld_interp.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
eb9a65c914
gallium: use LLVM opaque pointers in draw_llvm.c
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Mihai Preda
af20d46a39
gallium: add opaque pointers shim for LLVM < 8.0
...
LLVM is transitioning to "opaque pointers", and as such deprecates
LLVMBuildGEP, LLVMBuildCall, LLVMBuildLoad, replacing them with
LLVMBuildGEP2, LLVMBuildCall2, LLVMBuildLoad2 respectivelly.
These new functions were added in LLVM 8.0; so for LLVM before 8.0 we
simply forward to the non-opaque-pointer variants.
Acked-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893 >
2022-05-04 20:00:33 +00:00
Adam Jackson
bbdf7e45b1
wsi/x11: Hook up KHR_incremental_present
...
We create one XFIXES region per swapchain image. If the QueuePresent
comes in with a list of rectangles, we push them into the region and
pass it to xcb_present_pixmap.
The extension is technically just a hint. We still fall back to the
unhinted "update the whole image" path if the update region has more
than an arbitrary number of rects, or if we're stuck using plain
PutImage instead of ShmPutImage.
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16218 >
2022-05-04 19:31:53 +00:00
Mike Blumenkrantz
9f91ce3556
zink: add a ci flake
...
weird that this is suddenly failing on two drivers lately...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16329 >
2022-05-04 19:07:36 +00:00
Mike Blumenkrantz
5d621bef7b
lavapipe: lower quad_broadcast intrinsics
...
not supported by gallivm
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16301 >
2022-05-04 18:55:19 +00:00
Emma Anholt
3cdb200f10
svga: Add support for requesting NIR and translating to TGSI.
...
I'm working on switching mesa/st to no longer produce TGSI on its own, and
so we need a way to test SVGA against that future.
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com >
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Charmaine Lee <charmainel@vmware.com >
Reviewed-by: Neha Bhende <bhenden@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14160 >
2022-05-04 18:09:43 +00:00
Jonathan Gray
0cfc01fe83
intel/dev: add RPL-S pci ids from drm-intel-next
...
from Tejas Upadhyay 'drm/i915: Add RPL-S PCI IDs' in drm-intel-next
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16320 >
2022-05-04 17:18:03 +00:00
Samuel Pitoiset
665a671c7d
radv: only init acceleration structure if RT is enabled
...
This is to fix a LLVM crash with 13.0 because ATOMIC_FMAX is only
supported on 14.0+, so RADV_DEBUG=llvm was just completely broken.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16305 >
2022-05-04 16:46:25 +00:00
Samuel Pitoiset
e53e70fba0
radv/sqtt: fix configuring AUTO_FLUSH_MODE on GFX10.3
...
The polarity is inverted. Ported from RadeonSI and PAL.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16303 >
2022-05-04 16:13:49 +00:00
Samuel Pitoiset
4f9ae10296
ac,radeonsi: add has_sqtt_auto_flush_mode_bug
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16303 >
2022-05-04 16:13:49 +00:00