Mike Blumenkrantz
3064bfc312
zink: guard rebar check against fallback heap detection
...
if there is no heap with device-local and host-visible, then
rebar cannot exist. the previous detection did not account for
the rebar heap using the device-local fallback, which of course
would have the same size as the device-local heap and pass the threshold
check
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33359 >
2025-02-03 20:42:26 +00:00
Roland Scheidegger
8aae760144
llvmpipe: don't assert on exceeding if_stack size
...
Rather than assert (and otherwise write past the array size), guard against
this (and miscompile the shader), to make the code more robust.
This mimics the behavior of exceeding the cond_stack size (and other similar
stacks) - the if_stack is only used together with the cond_stack, the behavior
should be the same.
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33338 >
2025-02-03 19:58:45 +00:00
Jon Hunter
9cc0b497b3
freedreno/registers: Fix gen_header.py for older python3 versions
...
The gen_header.py script is failing for older versions of python3 such
as python 3.5. Two issues observed with python 3.5 are ...
1. Python 3 versions prior to 3.6 do not support the f-string format.
2. Early python 3 versions do not support the 'required' argument for
the argparse add_subparsers().
Fix both of the above so that older versions of python 3 still work.
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28780 >
2025-02-03 19:26:35 +00:00
Dmitry Baryshkov
84e93daa26
freedreno/registers: allow skipping the validation
...
We don't need to run the validation of the XML files if we are just
compiling the kernel. Skip the validation unless the user enables
corresponding Kconfig option. This removes a warning from gen_header.py
about lxml being not installed.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au >
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28780 >
2025-02-03 19:26:35 +00:00
Rob Clark
9540139f43
freedreno+tu: Add new virtgpu caps
...
Avoid some extra round-trips at startup if the host is new enough.
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33339 >
2025-02-03 18:56:37 +00:00
Juan A. Suarez Romero
0ee5015da4
Revert "st/mesa: move VS & TES output stores to the end before unlowering IO"
...
This reverts commit 3290222a1a , which was
introduced to fix a regression that only happens in v3d.
As this was moved to the v3d driver, it does not makes any sense more to
do it here.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33310 >
2025-02-03 17:10:48 +00:00
Juan A. Suarez Romero
1e0e521a7d
broadcom/compiler: move stores to the end of shader
...
It is possible that shader comes with output stores executed before
loading inputs. As the memory to read the inputs and store the outputs
is the same, this mean it could be overwriting the inputs before reading
them.
This move avoids this situation.
This partially improves
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33053 .
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33310 >
2025-02-03 17:10:47 +00:00
Jordan Justen
0e648a238e
intel/dev: Add BMG PCI IDs (0xe210, 0xe215, 0xe216)
...
Backport-to: 24.3
Backport-to: 25.0
Ref: https://patchwork.freedesktop.org/patch/msgid/20250128162015.3288675-1-shekhar.chauhan@intel.com
Ref: bspec 68090
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33335 >
2025-02-03 08:15:01 -08:00
Konstantin Seurer
3ab55b3c51
radv/meta: Stop using strings for meta keys
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32881 >
2025-02-03 16:03:49 +01:00
Konstantin Seurer
32e0e8c8c5
hk: Stop using strings or common key types for meta keys
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32881 >
2025-02-03 16:03:49 +01:00
Konstantin Seurer
db4277adf8
vulkan/meta: Stop using strings for meta keys
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32881 >
2025-02-03 16:03:49 +01:00
Konstantin Seurer
1bba4cf21b
vulkan/meta: Remove object types from vk_meta_object_key_type
...
Most values are used for multiple object types. It also is not
necessary, because the object type is already included in the key.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32881 >
2025-02-03 16:03:49 +01:00
Konstantin Seurer
3319e496f7
vulkan: Stop using strings for BVH build pipeline keys
...
The intended use is to pass a keys struct with vk_meta_object_key_type
as its first member.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32881 >
2025-02-03 16:03:49 +01:00
Iago Toral Quiroga
5572e274e2
v3dv: serialize jobs after any barrier when debug sync is set
...
This will ensure we always generate a new job after a barrier and
that the new job is setup to be serialized against all previous jobs.
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33350 >
2025-02-03 13:06:59 +00:00
Iago Toral Quiroga
8d9f5dfd1d
v3dv: implement sync debug option
...
This makes it so all jobs submitted to the queue are automatically serialized
against all other jobs.
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33350 >
2025-02-03 13:06:59 +00:00
Sergi Blanch Torne
d36e97c774
Revert "ci: disable Collabora's farm due to maintenance"
...
This reverts commit 5b04337ba0 .
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33349 >
2025-02-03 12:24:07 +00:00
Sil Vilerino
5c26f165ba
d3d12: Enable warnings C4056, C4305, C4351, C4756, C4800, C4291, C4020, C4624, C4309, C5105, C4024, C4189
...
Reviewed-By: Jesse Natalie <jenatali@microsoft.com >
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33332 >
2025-02-03 11:06:59 +00:00
Sil Vilerino
15b2486a09
d3d12: Fix warning C4800 forcing value to bool 'true' or 'false'
...
Reviewed-By: Jesse Natalie <jenatali@microsoft.com >
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33332 >
2025-02-03 11:06:59 +00:00
Sil Vilerino
d67980140c
u_thread.h: Fix warning C4800 forcing value to bool 'true' or 'false'
...
Reviewed-By: Jesse Natalie <jenatali@microsoft.com >
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33332 >
2025-02-03 11:06:59 +00:00
Sil Vilerino
1e869b3750
nir.h: Fix warning C4800 forcing value to bool 'true' or 'false'
...
Reviewed-By: Jesse Natalie <jenatali@microsoft.com >
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33332 >
2025-02-03 11:06:59 +00:00
Sil Vilerino
e272c98f5d
d3d12: Fix warning 4305 truncation from type1 to type2
...
Reviewed-By: Jesse Natalie <jenatali@microsoft.com >
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33332 >
2025-02-03 11:06:59 +00:00
Valentine Burley
a5765d7659
khronos-update: Update ANDROID guards in vk_android_native_buffer.h
...
This file was modified in commit bcc1950886 ("vulkan: fix glibc AOSP build")
without realizing it is imported code.
Update it to prevent the need to revert this modification after every
header update.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33272 >
2025-02-03 10:21:23 +00:00
Sergi Blanch Torne
5b04337ba0
ci: disable Collabora's farm due to maintenance
...
Planned downtime in the farm:
* Start: 2025-02-03 08:00 UTC
* End: 2025-02-03 14:00 UTC
Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33095 >
2025-02-03 08:38:59 +01:00
José Roberto de Souza
bb31287d24
intel: Initialize upper 32bits of drm_xe_sync.handle
...
Some compiles don't initialize the upper 32bits of the union that has
u64 addr and u32 handle.
Similar to previous patches but doing that for code in intel/misc.
Cc: stable
Signed-off-by: José Roberto de Souza <jose.souza@intel.com >
Signed-off-by: Juston Li <justonli@google.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33172 >
2025-02-02 21:34:45 -08:00
Juston Li
d3adc33175
iris: xe: fully initialize drm_xe_sync addr/handle union
...
Make sure the upper 32 bits of the addr/handle union are initialized
as that behavior is compiler-specific.
See the previous anv patch for more details.
Cc: stable
Signed-off-by: Juston Li <justonli@google.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33172 >
2025-02-02 21:34:45 -08:00
Juston Li
9afe29153d
anv: xe: fully initialize drm_xe_sync addr/handle union
...
The handle and addr fields of drm_xe_sync is defined as the union:
union {
__u32 handle;
__u64 addr;
};
When initialized on the stack on certain implementations, setting
.handle will leave the upper bits of .addr/the overall union
uninitialized causing exec calls to fail with:
[drm:xe_sync_entry_parse [xe]] Ioctl argument check failed at drivers/gpu/drm/xe/xe_sync.c:136: upper_32_bits(sync_in.addr)
Somewhat awkward but init .addr first to 0 and then set the handle after
the struct init.
Cc: stable
Signed-off-by: Juston Li <justonli@google.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33172 >
2025-02-02 21:34:45 -08:00
Pavel Ondračka
f7e5daaedd
i915/ci: use debian-build-testing instead of debian-testing
...
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33345 >
2025-02-02 18:01:41 +01:00
Tim Keller
4ecd183c56
dril: Check for null config in dril_target.c
...
fixes: 06d417af
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33336 >
2025-02-01 23:33:26 +00:00
Ernst Persson
c64871accc
intel/vulkan: Add bvh build dependency
...
Fixes: 41baeb3810 ("anv: Implement acceleration structure API")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12558
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33333 >
2025-02-01 20:11:28 +01:00
Lionel Landwerlin
98ddfd040a
spirv: remove spirv_library_to_nir_builder
...
Now unused
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33329 >
2025-02-01 07:54:37 +00:00
Lionel Landwerlin
41aa22a6b5
intel_clc: remove NIR output support
...
Now unused
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33329 >
2025-02-01 07:54:37 +00:00
Lionel Landwerlin
6d5375017a
compiler: drop vtn_bindgen
...
Now unused
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33329 >
2025-02-01 07:54:37 +00:00
Lionel Landwerlin
4f9eace864
intel: move internal shader compile to vtn_bindgen2
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33329 >
2025-02-01 07:54:37 +00:00
Lionel Landwerlin
fdeb05c907
anv: fixup missing compiler dependency on tests
...
Pull in anv_deps to solve this.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33329 >
2025-02-01 07:54:37 +00:00
Marek Olšák
e621bafa9a
ci/debian-ppc64el: don't build AMD drivers due to having only LLVM 15
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33211 >
2025-02-01 04:22:30 +00:00
Marek Olšák
82047fa82f
amd: drop support for LLVM 15, 16, 17
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33211 >
2025-02-01 04:22:30 +00:00
Caio Oliveira
5ca23eff0b
intel/brw: Remove brw_gs_compile struct
...
There were 4 fields:
- key: now will be passed explicitly, so we can reuse the existing
more general fs_visitor constructor;
- input_vue_map: used only by the client code brw_compile_gs, so
create it separatedly as a local variable;
- two unsigned parameters: just put them inside a nested struct in the
shader.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33228 >
2025-02-01 02:44:29 +00:00
Vasily Khoruzhick
3983e88c27
lima: ppir: handle ffma in the backend
...
ppir doesn't do a good job in fusing ffma, so allow nir to do it and
handle ffma in backend.
shader-db:
total instructions in shared programs: 29485 -> 29066 (-1.42%)
instructions in affected programs: 10362 -> 9943 (-4.04%)
helped: 114
HURT: 5
helped stats (abs) min: 1 max: 30 x̄: 3.72 x̃: 2
helped stats (rel) min: 0.78% max: 20.00% x̄: 5.66% x̃: 4.31%
HURT stats (abs) min: 1 max: 1 x̄: 1.00 x̃: 1
HURT stats (rel) min: 0.52% max: 1.09% x̄: 0.85% x̃: 0.98%
95% mean confidence interval for instructions value: -4.37 -2.67
95% mean confidence interval for instructions %-change: -6.10% -4.68%
Instructions are helped.
total loops in shared programs: 2 -> 2 (0.00%)
loops in affected programs: 0 -> 0
helped: 0
HURT: 0
total spills in shared programs: 369 -> 367 (-0.54%)
spills in affected programs: 199 -> 197 (-1.01%)
helped: 8
HURT: 9
total fills in shared programs: 1265 -> 1208 (-4.51%)
fills in affected programs: 758 -> 701 (-7.52%)
helped: 11
HURT: 9
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/33313 >
2025-02-01 02:21:19 +00:00
Jesse Natalie
a4b1924b22
CI/Windows: Update container deps
...
Acked-by: Daniel Stone <daniels@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33294 >
2025-02-01 01:20:52 +00:00
Jesse Natalie
049015a7b8
meson: Enable /Zc:preprocessor for MSVC
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33294 >
2025-02-01 01:20:52 +00:00
Karol Herbst
3129fd8dcf
rusticl/queue: check device error status
...
If the underlying GPU context hit any execution errors (e.g. it times out
or something) we want to report it to the application as well.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32929 >
2025-02-01 00:17:03 +00:00
Karol Herbst
2c52ddd1a6
rusticl/mesa: add PipeContext::device_reset_status
...
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32929 >
2025-02-01 00:17:03 +00:00
Karol Herbst
46454f01d3
rusticl/mem: set bind flags for gl imports
...
We have to tell the driver how we want to use the resource.
Fixes: 2645003bdc ("rusticl: Create CL mem objects from GL")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33325 >
2025-01-31 23:38:21 +00:00
Sil Vilerino
0e94a14900
d3d12: Fix array of texture DPB cap detection
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33312 >
2025-01-31 21:36:17 +00:00
Sil Vilerino
b68ddd98d8
d3d12: Increase DPB video texture array pool size for async queue depth
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33312 >
2025-01-31 21:36:17 +00:00
Sil Vilerino
d9f9129210
d3d12: Add some missing members initialization for d3d12_video_buffer
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33312 >
2025-01-31 21:36:17 +00:00
Sil Vilerino
fcbadd77a8
d3d12: Add NULL initialization for d3d12_video_enc::m_pVideoTexArrayDPBPool
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33312 >
2025-01-31 21:36:17 +00:00
Sil Vilerino
123374c1d7
d3d12: Add support for Y210, Y410, YUY2 and HEVC 422 8/10b, HEVC 444 10b profiles
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33312 >
2025-01-31 21:36:17 +00:00
Sil Vilerino
df27e09267
pipe: Add profiles for HEVC 422 8/10b and 444 10b
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33312 >
2025-01-31 21:36:17 +00:00
Sil Vilerino
a1e15f561f
d3d12: Fix HEVC range extension pic params validation
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33312 >
2025-01-31 21:36:17 +00:00