Faith Ekstrand
d2cec80768
nak: Implement 64-bit comparisons
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26246 >
2023-12-05 11:24:51 +00:00
Faith Ekstrand
8747a25d65
nak: Rework printing of comparisons
...
As with the memory modifiers, put the . on the modifier rather than
having to do it as part of the print itself. Also, add printing of
accumulators but only if it's not a trivial accumulation.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26246 >
2023-12-05 11:24:51 +00:00
Faith Ekstrand
9c1eade3eb
nak: Lower isign in NIR
...
The NIR lowering just clamps to [-1, 1] which should turn into two IMnMx
as opposed to the 4 instructions we're emitting now. We can maybe do
better than the NIR lowering for 64-bit but that seems unnecessary.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26246 >
2023-12-05 11:24:51 +00:00
Faith Ekstrand
12acb2ef62
nak: Natively implement 64-bit shifts
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26246 >
2023-12-05 11:24:51 +00:00
Faith Ekstrand
a52e46406b
nak: Implement 64-bit ineg
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26246 >
2023-12-05 11:24:51 +00:00
Faith Ekstrand
7db3cc7502
nak/nir: Don't use nir_lower_bit_size on 64-bit values
...
It works by casting values to a larger type and doing the operation
there so it makes no sense to use it for 64-bit values.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26246 >
2023-12-05 11:24:50 +00:00
Faith Ekstrand
af94989085
nak: Set .64/.32 on CSSR as needed
...
Fixes: 46d489fa4d ("nak: Implement shader clock")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26246 >
2023-12-05 11:24:50 +00:00
Faith Ekstrand
ee386c0c58
nak: Fix integer roll-over when we have a u64vec4
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26246 >
2023-12-05 11:24:50 +00:00
Faith Ekstrand
add1119671
nak: Run rustfmt again
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26246 >
2023-12-05 11:24:50 +00:00
Yonggang Luo
83a5fb9faf
util: Fixes note: the alignment of ‘_Atomic long long int’ fields changed in GCC 11.
...
This is a improve of https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22121
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23961 >
2023-12-05 09:26:08 +00:00
Eric Engestrom
81ec1fa0b5
nvk: use || instead of | between bools
...
We have to split each call into its own variable, because simply
replacing `|` with `||` would short-circuit the right side when the left
side succeeds.
Fixes: dadf9d59e6 ("nvk: Add support for variable pointers")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26509 >
2023-12-05 08:07:48 +00:00
Eric Engestrom
3115e6e211
amd/ci: reuse .radeonsi-rules in .radeonsi-vaapi-rules
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26480 >
2023-12-05 06:55:21 +00:00
Lionel Landwerlin
344a4948b7
intel/hang_replay: fix compile race with generated files
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: 03712579b0 ("intel/tools: add hang_replay tool")
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26510 >
2023-12-05 06:09:52 +00:00
Faith Ekstrand
dcf2f25169
nouveau: Move headers/classes to headers/nvidia/classes
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26507 >
2023-12-05 03:53:01 +00:00
Faith Ekstrand
ec345567ad
nouveau: Rename nvidia-headers to headers
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26507 >
2023-12-05 03:53:01 +00:00
Yonggang Luo
e568ef122a
d3d12,dzn: Simplify the usage of #include <wsl/winadapter.h>
...
Now wsl/winadapter.h are platform independent
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26508 >
2023-12-05 03:24:30 +00:00
Yonggang Luo
767aa00230
dzn: Fixes -Werror=incompatible-pointer-type
...
Error message:
../../src/microsoft/vulkan/dzn_device.c:3840:108: error: passing argument 5 of 'device->dev13->lpVtbl->OpenExistingHeapFromAddress1' from incompatible pointer type [-Werror=incompatible-pointer-types]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26508 >
2023-12-05 03:24:30 +00:00
Rob Clark
f2e3285d8e
freedreno/drm: Fix zombie BO import harder
...
Fixes: 6ac133c646 ("freedreno/drm: Fix race in zombie import")
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26506 >
2023-12-05 03:03:12 +00:00
Mohamed Ahmed
3c10b70ee8
nvk: Enable linear images for texturing
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26365 >
2023-12-05 02:47:18 +00:00
Mohamed Ahmed
03492b5532
nvk: Wire up rendering to linear
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26365 >
2023-12-05 02:47:18 +00:00
Mohamed Ahmed
6ab7753042
nil: Add support for linear images
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26365 >
2023-12-05 02:47:18 +00:00
Mohamed Ahmed
b1737856ad
nvk: Fix GetImageSubResourceLayout for non-disjoint images
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26365 >
2023-12-05 02:47:18 +00:00
Faith Ekstrand
db1ec1c67a
nil: Add support for filling out linear texture headers
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26365 >
2023-12-05 02:47:18 +00:00
Faith Ekstrand
bd667acb35
nvk: Advertise VK_EXT_subgroup_size_control
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9617
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26503 >
2023-12-05 02:32:00 +00:00
Dmitry Baryshkov
579ea57db9
freedreno/regs: add mdp_fetch_mode enum
...
Basing on the DPU driver, add the mdp_fetch_mode enum. It describes the
SSPP fetching mode: linear, UBWC or tiled.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26471 >
2023-12-05 01:19:50 +00:00
Dmitry Baryshkov
10cca7ac49
freedreno/regs/mdp_common: fix BPC comments
...
Fix comments for the BPC5 and BPC4A entries, so that they mention proper
bit width corresponding to this enum value.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26471 >
2023-12-05 01:19:50 +00:00
Dmitry Baryshkov
80816f210d
freedreno/regs/mdp_common: change BPC1 -> BPC4
...
This enum value corresponds to 4-bits colour instead of 1-bit colour.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26471 >
2023-12-05 01:19:50 +00:00
Rob Clark
d05e81fa7f
isaspec: Sort labels with same output
...
In order to get stable results from qsort() across different versions of
libc, toolchain, etc., sort labels with the same offset alphabetically.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10217
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26399 >
2023-12-05 00:42:09 +00:00
Boris Brezillon
93e9bfcfd5
panfrost: Fix multiplanar YUV texture descriptor emission on v9+
...
Multiplanar YUV textures require two surface descriptors, and the
base address calculation should be moved inside the for loop,
otherwise we always take the base address of the first plane.
Fixes: 144f9324a3 ("panfrost: prepare v9+ to support YUV sampling")
Cc: stable
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26425 >
2023-12-05 00:26:20 +00:00
Eric Engestrom
dafd6e776e
venus: fix typo in comment
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26495 >
2023-12-05 00:03:56 +00:00
Eric Engestrom
64a827a8e6
venus: update symbols that have become aliases for newer ones
...
All of these have been renamed in the spec (usually by being promoted);
renamed them in our code too.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26495 >
2023-12-05 00:03:56 +00:00
Eric Engestrom
f5297208d0
vk/overlay-layer: update symbols that have become aliases for newer ones
...
All of these have been renamed in the spec (usually by being promoted);
renamed them in our code too.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26487 >
2023-12-04 23:27:29 +00:00
Eric Engestrom
d0df3834b4
vk/util: update symbols that have become aliases for newer ones
...
All of these have been renamed in the spec (usually by being promoted);
renamed them in our code too.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26487 >
2023-12-04 23:27:29 +00:00
Eric Engestrom
d6144ba88f
vk/wsi: update symbols that have become aliases for newer ones
...
All of these have been renamed in the spec (usually by being promoted);
renamed them in our code too.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26487 >
2023-12-04 23:27:29 +00:00
Eric Engestrom
84c27ea42c
vk/runtime: update symbols that have become aliases for newer ones
...
All of these have been renamed in the spec (usually by being promoted);
renamed them in our code too.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26487 >
2023-12-04 23:27:29 +00:00
Lionel Landwerlin
7c76125db2
anv: use 2 different buffers for surfaces/samplers in descriptor sets
...
We had the unfortunate finding on a recent platform to learn that the
bindless sampler heap is not functioning as expected.
Nowhere in the documentation is the size of the heap written down. So
most people assumed that's the max number that we can program (4Gb).
The reality is that it's only 64Mb.
Though it is appearing like it's working properly for the whole 4Gb
range for most apps, this is only because the HW bounds checking
applied is broken. Instead of clamping anything beyong 64Mb, it's only
clamping the last 4Kb of each 64Mb region.
So this heap is useless for us to make a 4Gb region of both sampler &
surface states...
This change essentially turns off the bindless sampler heap on DG2+.
The only location where we can put SAMPLER_STATE elements is the
dynamic state heap. Unfortunately we cannot align the dynamic state
heap with the bindless surface state heap. So the solution is to
allocate sampler & surface states separately, each from the own heap
in the descriptor pool.
We now have to provide 2 sets of offsets for surfaces & samplers.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Rohan Garg <rohan.garg@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25897 >
2023-12-04 23:06:05 +00:00
Lionel Landwerlin
09a3a93372
anv: set layout printer
...
Reviewed-by: Rohan Garg <rohan.garg@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25897 >
2023-12-04 23:06:05 +00:00
Lionel Landwerlin
4608de6645
anv: add missing push descriptor flush on ray tracing pipelines
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Rohan Garg <rohan.garg@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25897 >
2023-12-04 23:06:05 +00:00
Lionel Landwerlin
f26e83b6a4
anv: make a couple of descriptor function private
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Rohan Garg <rohan.garg@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25897 >
2023-12-04 23:06:05 +00:00
Lionel Landwerlin
1cdadbcdf6
anv: move descriptor set type selection to earlier
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Rohan Garg <rohan.garg@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25897 >
2023-12-04 23:06:05 +00:00
Lionel Landwerlin
18a1234541
anv: add a sampler state pool
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Rohan Garg <rohan.garg@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25897 >
2023-12-04 23:06:05 +00:00
Eric Engestrom
ddc6bd11df
nvk: update symbols that have become aliases for newer ones
...
All of these have been renamed in the spec (usually by being promoted);
renamed them in our code too.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26492 >
2023-12-04 22:50:26 +00:00
Sviatoslav Peleshko
5cb20b5edc
anv: Fix MI_ARB_CHECK calls in generated indirect draws optimization
...
According to PRMs, to use self-modifying code correctly we have to
disable preparser before jumping to the generated commands, and re-enable
it with a first command in that buffer.
Old implementation did it wrong: for both inplace and inring generation
it disabled preparser before running the generation shader, had it
disabled during generation, and re-enabled it just before jumping to
the generated commands.
This usually didn't cause any trouble, because the generation shader and
generated draws are in different BOs, and the jump distance is greater than
the command FIFO depth. But we allocate them from the same pool,
so there are rare cases where the end of the BO with generation commands,
and the beginning of the BO with generated draws are adjacent. In such
cases, the wrong commands might be fetched.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10162
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26427 >
2023-12-04 22:02:59 +00:00
Sil Vilerino
936dd81ed9
ci: Build d3d12 gallium driver in debian-x86_32
...
Adding d3d12 to this ci build will prevent issues such
as #6708 or fixes like !26363 from happening again in the future.
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26447 >
2023-12-04 21:06:16 +00:00
Eric Engestrom
ebaede788e
amd/ci: limit radv jobs to radv + aco files changes
...
Otherwise, any change in src/amd/ would always trigger all the radv
jobs.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26460 >
2023-12-04 20:43:53 +00:00
Eric Engestrom
03d8ea9912
amd/ci: split common amd files list from radeonsi files list
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26460 >
2023-12-04 20:43:53 +00:00
Eric Engestrom
98f0800c94
amd/ci: fix yaml indentation
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26460 >
2023-12-04 20:43:53 +00:00
Eric Engestrom
fc96bc9b58
hasvk: update symbols that have become aliases for newer ones
...
All of these have been renamed in the spec (usually by being promoted);
renamed them in our code too.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26491 >
2023-12-04 18:06:57 +00:00
Eric Engestrom
680d5fdaf3
anv: update symbols that have become aliases for newer ones
...
All of these have been renamed in the spec (usually by being promoted);
renamed them in our code too.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26491 >
2023-12-04 18:06:57 +00:00
José Roberto de Souza
7b2a0b6778
iris: Fix the mmap mode for IRIS_HEAP_DEVICE_LOCAL_PREFERRED
...
bos allocated into IRIS_HEAP_DEVICE_LOCAL_PREFERRED can always be
mmaped because it is also backed to smem which is not the case for
IRIS_HEAP_DEVICE_LOCAL.
This fixes issues with small PCIe bar systems.
Fixes: 21170a58d8 ("iris: Split system memory heap into cached-coherent and uncached heaps")
Signed-off-by: José Roberto de Souza <jose.souza@intel.com >
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26455 >
2023-12-04 16:35:15 +00:00