Lionel Landwerlin
6b494745be
intel/fs: only avoid SIMD32 if strictly inferior in throughput
...
This enabled SIMD32 in blorp shaders and seems to be give a small FPS
bump when using a DG2 GPU as secondary (requires copies to linear
buffers to exchange with main GPU).
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Acked-by: Matt Turner <mattst88@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19341 >
2023-01-09 08:41:47 +00:00
Samuel Pitoiset
480308c6e5
radv: remove unused radv_is_raster_enabled()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20517 >
2023-01-09 08:20:10 +00:00
Samuel Pitoiset
1099fd71b0
radv: initialize blend state after compiling shaders
...
This function used to compute part of the graphics key but everything
has been moved.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20517 >
2023-01-09 08:20:10 +00:00
Samuel Pitoiset
87b88de973
radv: replace blend_enable_4bit by radv_pipeline_is_blend_enabled()
...
Same logic, though this workaround shouldn't be determined from the
pipeline.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20517 >
2023-01-09 08:20:10 +00:00
Samuel Pitoiset
0768cc5ed1
radv: determine DISABLE_DUAL_QUAD directly from the command buffer
...
With dynamic color blend equations, dual-src blending will be
determined from the dynamic state, better to move it there now.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20517 >
2023-01-09 08:20:10 +00:00
Samuel Pitoiset
ab48665f8d
radv: simplify uses of color_write_mask/color_blend_enable
...
The common Vulkan code already sets them when they are dynamic, so this
was redundant.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20517 >
2023-01-09 08:20:10 +00:00
Samuel Pitoiset
25f067ef4c
radv: adjust CB_SHADER_MASK right after SPI_SHADER_COL_FORMAT is compacted
...
This is a cleanup.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20517 >
2023-01-09 08:20:10 +00:00
Samuel Pitoiset
db2108672d
radv: remove unused parameter in radv_init_multisample_state()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20517 >
2023-01-09 08:20:10 +00:00
Vinson Lee
84527093c4
spirv2dxil: Fix memory leak on error path.
...
Fix resource leak reported by Coverity Scan.
Resource leak (RESOURCE_LEAK)
leaked_storage: Variable file_contents going out of scope leaks the storage it points to.
Fixes: 531d17c334 ("spirv2dxil: Support linking multiple shaders")
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20576 >
2023-01-08 21:12:46 +00:00
Erico Nunes
9b29876a02
ci: Start weston with Xwayland
...
This can be used instead of HWCI_START_XORG to provide X in CI.
It will only be actually used if HWCI_START_XORG is not set in the same
job.
It is particularly useful as weston has the explicit headless backend
which is more straightforward to use in the headless systems in CI.
Signed-off-by: Erico Nunes <nunes.erico@gmail.com >
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20393 >
2023-01-08 17:36:13 +01:00
Gert Wollny
c91a78c03a
virgl: Use virgl host side shader stage IDs when reading caps
...
The ordering of enum pipe_shader_type changed, but not all locations where
the host uses the original ordering were changed to translate to the new
ordering, namely reading the shader caps was not fixed up so do this now.
v2: - inline virgl_shader_stage_convert (Corentin)
- encapuslate use of host shader stage when reading array elements
of host caps
Fixes: a26543f636
gallium: reorder the shader stage enum to match Mesa
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8023
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20544 >
2023-01-07 10:02:18 +00:00
David Heidelberg
300dc7d653
ci/virgl: cover more glx@glx-copy-sub-buffer flakes
...
Generally, where this test doesn't fail, there it flakes.
Cover all variants.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7753
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20556 >
2023-01-07 03:37:21 +01:00
Ryan Neph
91a1455e3b
Revert "ci/venus: disable for now"
...
This reverts commit 22ab226396 .
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20554 >
2023-01-07 01:23:28 +00:00
Ryan Neph
3e66ef53d4
ci: Bump crosvm and virglrenderer versions
...
Signed-off-by: Ryan Neph <ryanneph@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20554 >
2023-01-07 01:23:28 +00:00
Mary
d8e5714e81
isaspec: Fix bitmask conversions when isa.bitsize < 64
...
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20541 >
2023-01-07 00:14:10 +01:00
Lucas Stach
2d7ea1895e
etnaviv: add cleared surfaces to context flush set when necessary
...
A RS/BLT clear might only clear the TS buffer, so the cleared resources
need to be added to the context flush set when they aren't explicitly
flushed in order to make the effect of the clear visible in the resource
on context flush.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de >
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20012 >
2023-01-06 19:30:47 +00:00
Lucas Stach
cf501a7f34
etnaviv: split adding resource to context flush set into own function
...
It is needed in a few more places, so split it into a separate
function to make it reusable.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de >
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20012 >
2023-01-06 19:30:47 +00:00
Eric Engestrom
a6e487e367
ci_run_n_monitor.py: automatically retry on transient errors
...
This morning a GitLab update was deployed, leading to a few moments
where the API returned an error.
python-gitlab is actually able to handle a number of those and retry
automatically, so let's enable that:
https://python-gitlab.readthedocs.io/en/stable/api-usage-advanced.html#transient-errors
Signed-off-by: Eric Engestrom <eric@engestrom.ch >
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20094 >
2023-01-06 19:28:55 +00:00
Emma Anholt
617e7596d1
zink: Add an assert for not seeing any more MSAA image-to-buffer copies.
...
Now that transfer_map gets MSAA handled by the helper, we shouldn't have
to worry about this any more.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20523 >
2023-01-06 19:00:17 +00:00
Emma Anholt
f74bbcd8a0
zink: Have u_transfer_helper resolve MSAA surfaces when mapping.
...
This fixes all the dEQP winsys multisampling failures (like
dEQP-GLES3.functional.multisample.default_framebuffer.depth) I've found so
far.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20523 >
2023-01-06 19:00:17 +00:00
Emma Anholt
823e34f938
u_transfer_helper: Merge in-place and split z/s interleaved map handling.
...
The paths were mostly the same, except that in-place was missing the
appropriate layering for MSAA helper re-mapping. We can instead share
more code, making the differences between the interleave packing clear,
and have the MSAA resolve blit happen once before we do the split
mappings.
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20523 >
2023-01-06 19:00:17 +00:00
Emma Anholt
4372069f5a
u_transfer_helper: Use common code for interleaved unmap.
...
The function was static and only used from this caller, and the only
difference was that the interleaved case didn't handle trans->ss (which
will always be unset for an interleaved mapping since interleaving splits
the underlying map of the MSAA resource into trans->trans and
trans->trans2).
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20523 >
2023-01-06 19:00:17 +00:00
Emma Anholt
b5b2194a3a
u_transfer_helpre: Drop !interleave handling from the interleave code.
...
It's only called when need_interleave_path(), and they're static functions
in this file since !17959 .
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20523 >
2023-01-06 19:00:17 +00:00
Emma Anholt
95c4241f47
docs/gallium: Explain that MSAA transfer_map must be supported.
...
It's called this way in various drivers, and is an established part of the
transfer_map interface.
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20523 >
2023-01-06 19:00:17 +00:00
Emma Anholt
03a26ae3d9
ci: Fix VK driver setup for HWCI_START_*.
...
Review feedback requested a change that was incorrect, causing Xorg to
start to fail, but I forgot to retest the manual -full jobs that relied on
it.
Fixes: 99a6f2a186 ("ci: Set the path to the VK drivers during HWCI_START_XORG/WESTON.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20523 >
2023-01-06 19:00:17 +00:00
Rohan Garg
85650297d2
anv,hasvk: move the null check into the function call and drop null check copies
...
Signed-off-by: Rohan Garg <rohan.garg@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20104 >
2023-01-06 17:22:16 +00:00
Rohan Garg
0ae23b81a4
anv: Drop useless FIXME
...
Signed-off-by: Rohan Garg <rohan.garg@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20104 >
2023-01-06 17:22:16 +00:00
Rohan Garg
00ffe8227f
anv,hasvk: drop unused function
...
align_i32 is not used anywhere
Signed-off-by: Rohan Garg <rohan.garg@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20104 >
2023-01-06 17:22:16 +00:00
Rohan Garg
05dca17b57
anv,hasvk: migrate to ROUND_DOWN_TO from util
...
Signed-off-by: Rohan Garg <rohan.garg@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20104 >
2023-01-06 17:22:16 +00:00
Rohan Garg
818eed3d2f
anv,hasvk: migrate to u_minify from util
...
Signed-off-by: Rohan Garg <rohan.garg@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20104 >
2023-01-06 17:22:16 +00:00
Rohan Garg
9257b08f49
anv: migrate anv_minify to use u_minify
...
Signed-off-by: Rohan Garg <rohan.garg@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20104 >
2023-01-06 17:22:16 +00:00
Rohan Garg
4504188508
anv,hasvk: migrate to align64 from util
...
Signed-off-by: Rohan Garg <rohan.garg@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20104 >
2023-01-06 17:22:16 +00:00
Rohan Garg
a06f751ec8
anv,hasvk: migrate align32 to the right functions from util
...
Signed-off-by: Rohan Garg <rohan.garg@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20104 >
2023-01-06 17:22:16 +00:00
Rohan Garg
1e9fb7c696
anv,hasvk: Use the inbuilt macro from src/util for clamping int64_t
...
Signed-off-by: Rohan Garg <rohan.garg@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20104 >
2023-01-06 17:22:15 +00:00
Rohan Garg
0030d6d224
anv: constify variables and use early returns
...
Signed-off-by: Rohan Garg <rohan.garg@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20104 >
2023-01-06 17:22:15 +00:00
David Heidelberg
5fb935b3a4
ci/linker: update mold to 1.9
...
Bump needed for s390x fix with `-gsplit-dwarf` and `--gdb-index`.
See the https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20435
for more details.
I also switched from make to cmake (make is unsupported now).
Additionally disabled build testing and enabled LTO build for Mold.
Reviewed-by: Eric Engestrom <eric@igalia.com >
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20546 >
2023-01-06 16:28:27 +00:00
Rhys Perry
9e55b3b790
aco/gfx11: update s_code_end padding
...
Match ac_rtld_open().
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Cc: 22.3 <mesa-stable>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20536 >
2023-01-06 16:09:51 +00:00
Eric Engestrom
aab4a260db
meson: add missing dependency
...
Now that renderonly.h includes util/simple_mtx.h, which itself includes
valgrind.h, dep_valgrind is required by any module that includes
renderonly.h.
In file included from ../src/gallium/auxiliary/renderonly/renderonly.h:33,
from ../src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c:39:
../src/util/simple_mtx.h:34:12: fatal error: valgrind.h: No such file or directory
34 | # include <valgrind.h>
| ^~~~~~~~~~~~
compilation terminated.
dep_valgrind is part of idep_mesautil, which should be used instead of
copying the list of deps for each util header included (which would
have to be updated every time a util header changes its own includes),
so let's add idep_mesautil everywhere that includes renderonly.h.
Fixes: ad4d7ca833 ("kmsro: Fix renderonly_scanout BO aliasing")
Tested-by: Asahi Lina <lina@asahilina.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20530 >
2023-01-06 15:40:39 +00:00
Erico Nunes
cf64ca6a0c
ci: enable wayland platform in more debian builds
...
CI has recently gained coverage of wayland platform in EGL tests, but
some CI mesa builds such as arm builds currently don't enable the
wayland platform.
Enable it so test applications can properly initialize EGL with a
wayland platform.
Signed-off-by: Erico Nunes <nunes.erico@gmail.com >
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Acked-by: Daniel Stone <daniels@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20480 >
2023-01-06 15:00:57 +00:00
Martin Roukala (né Peres)
98747e5c82
radv/ci: run Zink testing on VanGogh
...
Running zink testing on RDNA2 hardware has been on our TODO list for
a while. While we don't have enough NAVI21 to test everything, we could
make use of the VanGogh APUs to do our Zink testing.
We will enable that job for pre-merge after a week or so of testing.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: David Heidelberg <david.heidelberg@collabora.com >
Signed-off-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20006 >
2023-01-06 14:09:31 +00:00
Martin Roukala (né Peres)
c90f69a043
zink/ci: rename zink-radv-* to zink-radv-navi10-*
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: David Heidelberg <david.heidelberg@collabora.com >
Signed-off-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20006 >
2023-01-06 14:09:31 +00:00
Martin Roukala (né Peres)
5b04a2138f
radv/ci: merge all the zink jobs into a single one
...
Since GL CTS, GLES CTS, and Piglit executions are very fast compared
to the machine setup time, it makes sense to combine them into one
boot.
The execution will run until the first test suite fails, or we are
done with the execution.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: David Heidelberg <david.heidelberg@collabora.com >
Signed-off-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20006 >
2023-01-06 14:09:31 +00:00
David Heidelberg
22ab226396
ci/venus: disable for now
...
It flakes too much. Until it gets sorted out, we disable it.
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20547 >
2023-01-06 14:09:49 +01:00
Corentin Noël
808a25c30a
venus: Avoid to copy the descriptor sets when it is not required
...
Allows to reduce the amount of allocations when the VkWriteDescriptorSet is
already sanitized.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com >
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20095 >
2023-01-06 11:20:00 +00:00
Samuel Pitoiset
5757dbe1ee
radv: fix returning VK_PIPELINE_COMPILE_REQUIRED from library
...
When VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED is set by
the application, the driver should return VK_COMPILE_REQUIRED but this
was broken for GPL (it returned VK_SUCCESS instead). Also, objects
shouldn't be destroyed when creating the library failed because it's
already handled in radv_graphics_lib_pipeline_create().
Cc: 22.3 mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7512
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20532 >
2023-01-06 10:10:18 +00:00
Michel Dänzer
888f5e5aa1
radeonsi: Fix amdgpu-color-export with prologues
...
Polygon stippling is handled in the prologue, amdgpu-color-export needs
to be set for that.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8010
Fixes: 1825ad134b ("radeonsi,radv/llvm: fix amdgpu-color/depth-export with epilogs")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20531 >
2023-01-06 08:56:31 +00:00
Samuel Pitoiset
988c871ca9
radv: stop dirtying INDEX_BUFFER for non-indexed draws
...
radv_emit_index_buffer() used to emit VGT_INDEX_TYPE but since I
implemented the DISABLE_INSTANCE_PACKING workaround, it's emitted
in radv_emit_draw_registers().
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20522 >
2023-01-06 08:32:01 +00:00
Samuel Pitoiset
509ba67aeb
radv: flush push descriptors at bind time
...
This doesn't need to be flushed at draw time.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20522 >
2023-01-06 08:32:01 +00:00
Samuel Pitoiset
f288acb50f
radv: remove set but unused radv_cmd_state::index_{buffer,offset}
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20522 >
2023-01-06 08:32:01 +00:00
Samuel Pitoiset
ddb21e86a4
radv: remove unused pipeline parameter from radv_emit_binning_state()
...
It's no longer needed because everything is dynamic.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20522 >
2023-01-06 08:32:01 +00:00