Samuel Pitoiset
5bacc668fa
radv: move forcing MRT output NaN fixup to the graphics pipeline key
...
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/13099 >
2021-10-04 10:05:18 +00:00
Samuel Pitoiset
fb453d80a4
radv: move forcing invariant geometry to the graphics pipeline key
...
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/13099 >
2021-10-04 10:05:18 +00:00
Samuel Pitoiset
421b5379df
radv: move forcing discard to demote to the graphics pipeline key
...
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/13099 >
2021-10-04 10:05:18 +00:00
Samuel Pitoiset
38c34bf132
radv: constify radv_shader_info for radv_lower_{io_to_mem,ngg}()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13134 >
2021-10-04 08:55:19 +00:00
Samuel Pitoiset
b52aaea630
radv: remove unnecessary ac_nir_ngg_config output struct
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13134 >
2021-10-04 08:55:19 +00:00
Samuel Pitoiset
52e91f7640
radv: move ngg passthrough determination earlier
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13134 >
2021-10-04 08:55:19 +00:00
Samuel Pitoiset
2ce78a30ff
move: move ngg lds bytes determination earlier
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13134 >
2021-10-04 08:55:19 +00:00
Samuel Pitoiset
90858dd718
radv: move ngg early prim export determination earlier
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13134 >
2021-10-04 08:55:19 +00:00
Rhys Perry
24501b5452
radv: move ngg culling determination earlier
...
Co-Authored-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13134 >
2021-10-04 08:55:19 +00:00
Samuel Pitoiset
5896bf41ca
radv: do not declare an extra user SGPR for sample positions and PS
...
This is part of the scratch buffer.
No fossils-db change on Sienna.
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/13140 >
2021-10-04 08:30:38 +00:00
Pierre-Eric Pelloux-Prayer
dfa4a85ddf
radeonsi: don't clear G_028644_OFFSET
...
Before 11d1309d82 this field was updated even when G_028644_PT_SPRITE_TEX was 0.
See https://gitlab.freedesktop.org/mesa/mesa/-/issues/5423
Fixes: 11d1309d82 ("radeonsi: restructure si_get_ps_input_cntl for future refactoring")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13105 >
2021-10-04 08:04:37 +00:00
Samuel Pitoiset
19a71e79b8
radv: get the float controls execution mode from NIR for LLVM
...
No need to duplicate it. Though, I think it was already broken
for merged shaders, but it doesn't matter.
No CTS regressions anyways with LLVM.
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/12989 >
2021-10-04 07:42:19 +00:00
Samuel Pitoiset
55e6a68f69
radv: disable the DX10 diamond test for better line rasterization perf
...
Ported from RadeonSI. PAL also doesn't enable it for Vulkan.
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/13066 >
2021-10-04 07:21:51 +00:00
Andreas Baierl
1e9f18008f
lima/parser: add shader disassembly to dump
...
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Reviewed-by: Erico Nunes <nunes.erico@gmail.com >
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13138 >
2021-10-04 08:37:50 +02:00
Lionel Landwerlin
445996379b
clc: let user specify the targetted SPIRV version
...
This version is given to the LLVM-SPIRV translator. On the SPIRV-Tools
side of things, we want to use the highest available version to be
sure to be able to parse back what was generated.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13113 >
2021-10-03 19:32:54 +00:00
Lionel Landwerlin
72fd81d0ac
clc: print warnings/errors on their own line
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13113 >
2021-10-03 19:32:54 +00:00
Lionel Landwerlin
3c8c817ae7
clc: add allowed extension for compile parameter
...
The LLVM-SPIRV translator can include a bunch of capabilities into the
generated SPIRV which is not what you always want. That include
internal Intel specific capabilities from the translator.
v2: Rename options
Fixup checks (Jesse)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13113 >
2021-10-03 19:32:54 +00:00
Mike Blumenkrantz
9e3293bcd4
zink: ensure fences are released before reusing them
...
at this point it's guaranteed that the cmdbuf has completed since the
timeline id has passed, but vulkan hasn't technically "released" the fence
until it's been waited upon, so cut down on some validation spam by waiting
here like in get_batch_state()
Acked-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13144 >
2021-10-03 14:57:03 +00:00
Mike Blumenkrantz
477855fce4
zink: stop using VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT
...
the pool is reset anyway so this is unnecessary
Acked-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13145 >
2021-10-03 10:43:39 -04:00
Bas Nieuwenhuizen
0dd0f6cf75
radv: Don't invalidate VCACHE after clear_htile_mask.
...
radv_src_access_flush sets all the required flags (which doesn't include VCACHE. The
flush after write is implicit. The invalidate happens for any user that needs it
with the radv_dst_access_flush).
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12274 >
2021-10-03 12:16:55 +00:00
Lionel Landwerlin
9667539b96
anv: honor INTEL_DEBUG=sync
...
Useful debug option for hangs.
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/13161 >
2021-10-03 11:01:18 +00:00
Bas Nieuwenhuizen
c6b8702eb4
radv: Fix Android build for common functions.
...
Fixes: 9fc16b66d0 ("radv: use common vkGetPhysicalDevice{Image}FormatProperties()")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5328
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12764 >
2021-10-03 00:36:58 +00:00
Marek Olšák
edc8a4a037
ac/surface: enable DCC image stores for all displayable DCC on gfx10.3
...
Co-authored-by: Joshua Ashton <joshua@froggi.es >
Signed-off-by: Joshua Ashton <joshua@froggi.es >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13153 >
2021-10-02 22:56:48 +00:00
Joshua Ashton
e76956b9e0
radeonsi: Use common DCC image store check
...
We need to keep RADV and RadeonSI on the same page about this due to modifiers.
Signed-off-by: Joshua Ashton <joshua@froggi.es >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13153 >
2021-10-02 22:56:48 +00:00
Joshua Ashton
fccdebd64d
radv: Use common DCC image store check
...
We need to keep RADV and RadeonSI on the same page about this due to modifiers.
Signed-off-by: Joshua Ashton <joshua@froggi.es >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13153 >
2021-10-02 22:56:48 +00:00
Joshua Ashton
e6fcf65578
ac/surface: Add helper for checking if a surface supports DCC Image stores
...
We need to keep RADV and RadeonSI on the same page about this due to modifiers.
Signed-off-by: Joshua Ashton <joshua@froggi.es >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13153 >
2021-10-02 22:56:48 +00:00
Kenneth Graunke
0a9e46e535
iris: Delete the MI_COPY_MEM_MEM resource_copy_region implementation.
...
The MI_COPY_MEM_MEM version of resource_copy_region has known bugs:
- It's failing to set valid_buffer_range correctly
- It's missing iris_emit_buffer_barrier_for() for the
source/destination, so there may be missing flushes.
- There are some bad interactions with the tile cache and VF using L3.
Even with those fixed, if you expand the "no more than 16 bytes"
restriction to allow copies up to 1024 bytes, then it starts failing
Piglit tests on Icelake.
We could probably fix this. However, I had originally only measured a
0.689096% +/- 0.473968% (n=4) speedup in Shadow of Mordor's OpenGL
port, which is already fairly small, especially before adding missing
flushes. Further, some of that likely came from not switching between
render and compute...which we'll soon be able to avoid thanks to BLOCS.
Folks were also worried that MI_COPY_MEM_MEM can't be pipelined, and
that stalling the command streamer may actually slow things down,
especially as the GPUs become more powerful. We aren't really sure
about this, but it's another concern.
So, let's just get rid of this optimization. It seemed like a good
idea at the time, but it's just causing issues for very little gain.
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Acked-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12863 >
2021-10-02 01:48:59 -07:00
Emma Anholt
b40d070ab9
freedreno: Move the headergen2 test to be meson unit tests.
...
Now all the freedreno build-time testing is just "meson test -C build"
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Emma Anholt
82b5c95265
freedreno: Move crashdec/cffdec tests to be meson unit tests.
...
Now they run automatically in parallel with other unit testing, rather
than needing a separate script and environment to run them.
Instead of doing shell script filtering afterwards, I just added a little
flag to suppress printing the path name. Also dropped the "Parsing
<file>" in addition to "Reading <file>" in the tested script, since it's
redundant and baked the path name into the reference.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Emma Anholt
5209a0ae16
freedreno: Move afuc tests to meson unit tests.
...
Now they run automatically in parallel with other unit testing, rather
than needing a separate script and environment to run them.
Instead of doing shell script filtering afterwards, I just added a little
flag to suppress printing the path name.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Eric Anholt
7438ea55c4
freedreno: Reuse u_math.h instead of open coding uif().
...
Plus the old version had a comment with what conversion was being done
swapped!
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Eric Anholt
db95dfe252
freedreno: Reuse u_math.h instead of open coding ALIGN/ARRAY_SIZE.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Eric Anholt
21df8b3e08
freedreno: Fix UBSan failures in cffdec's (uint8_t)x << 24
...
Types <32 bit get promoted to int32_t when you do expressions on them
(thus why (u8)x << 8 works at all), but shifting into the top bit of the
signed int is undefined behavior.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Emma Anholt
d5a80781aa
freedreno/afuc: Avoid ubsan warns about shifting to the top bit of 'int'
...
I think maybe it's being promoted to int due to the mismatched bitfield
sizes of the uint32_t values being referenced here?
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Emma Anholt
ba9e994034
freedreno/rnndec: Avoid making 0-length variable length arrays.
...
ubsan hates it.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Emma Anholt
bd8bfe43fa
freedreno/rnndec: Fix use of undefined value_orig in the !ti case.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Filip Gawin
b47017192b
r300: implement forgotten tgsi's cases of textures
...
Fixes: d0c398a8 ("r300g: Use radeon compiler for fragment programs")
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13135 >
2021-10-01 22:56:51 +00:00
Emma Anholt
5116388e0b
turnip: Expose a device name similar to the blob.
...
We add "Turnip" so that users (and vulkan.gpuinfo.org) can distinguish us
without requiring VK_KHR_driver_properties. This will be a lot more
user-friendly than "FD618", though.
I made some little vk_asprintf helpers, because I figure other drivers
setting up deviceName's will want them too.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13041 >
2021-10-01 22:32:10 +00:00
Emma Anholt
7e471541e0
turnip: Match the blob's format for vendorID and deviceID.
...
This should hopefully cause us the least trouble with apps tuning for
device performance.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13041 >
2021-10-01 22:32:10 +00:00
Sagar Ghuge
7ddb0c9f76
iris: Enable atomic operations on compressed surfaces
...
Let's not turn off compression for atomic operations since XeHPG
supports it.
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12966 >
2021-10-01 22:16:22 +00:00
Mike Blumenkrantz
2f7ea2c493
anv: support EXT_primitive_topology_list_restart
...
Acked-by: Jason Ekstrand <jason@jlekstrand.net >
Tested-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12628 >
2021-10-01 21:49:26 +00:00
Marek Olšák
923c535ee8
ac/surface: don't overwrite DCC settings for imported buffers
...
Fixes: 0f6251b31f - ac/surface: use DCC compatible with image stores for < 4K resolutions
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13120 >
2021-10-01 16:15:40 -04:00
Vasily Khoruzhick
5db5ff58b7
lima: split_load_input: don't split unaligned vec2
...
Mali4x0 can't fetch unaligned vec2 (i.e. .yz), so don't split it.
Fixes: 6dd0ad66de ("lima/ppir: add NIR pass to split varying loads")
Reviewed-by: Erico Nunes <nunes.erico@gmail.com >
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13131 >
2021-10-01 18:11:54 +00:00
Tapani Pälli
c752bb459b
panvk: remove feature checks from device creation
...
This is already handled by vk_device_init(); drivers no longer
need to do it themselves.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Tapani Pälli
54325dd138
lavapipe: remove feature checks from device creation
...
This is already handled by vk_device_init(); drivers no longer
need to do it themselves.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Tapani Pälli
f056fb1e56
v3dv: remove feature checks from device creation
...
This is already handled by vk_device_init(); drivers no longer
need to do it themselves.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Tapani Pälli
40c798c6bc
turnip: remove feature checks from device creation
...
This is already handled by vk_device_init(); drivers no longer
need to do it themselves.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Hyunjun Ko <zzoon@igalia.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Tapani Pälli
814d6b626f
radv: remove feature checks from device creation
...
This is already handled by vk_device_init(); drivers no longer
need to do it themselves.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Tapani Pälli
69e82462a1
anv: remove feature checks from device creation
...
This is already handled by vk_device_init(); drivers no longer
need to do it themselves.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Tapani Pälli
2e5718c957
vulkan: provide common functions to check device features
...
v2: move checks to vk_device_init, ignore struct types from
provisional extensions + lots of cleanups/fixes (Jason Ekstrand)
v3: squash in following patch from Jason:
"vulkan: Restructure vk_physical_device_check_device_features()"
v4 (Jason): Fix a Windows build error
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00