Jesse Natalie
43ed15a61b
d3d12: Don't promote to read-write states
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39077 >
2026-01-05 23:25:21 +00:00
Jesse Natalie
bbd16fdf05
d3d12: Ensure that flush_resource causes batches to get flushed
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39077 >
2026-01-05 23:25:21 +00:00
Jesse Natalie
d9997c97be
d3d12: Assert that there's no front buffer writes
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39077 >
2026-01-05 23:25:21 +00:00
Jesse Natalie
86587517b2
d3d12: Decay state when resolving context -> global state
...
Also ensure that *all* promotions are considered promotions, not
just ones that combine with an existing state bit.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39077 >
2026-01-05 23:25:20 +00:00
Jesse Natalie
fe48cd7c5a
d3d12: Allow state promotion for non-simultaneous access textures
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39077 >
2026-01-05 23:25:20 +00:00
Jesse Natalie
7f058c4740
wgl/d3d12: Return success based only on Present return
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39077 >
2026-01-05 23:25:19 +00:00
Jesse Natalie
21e5d19f9e
wgl: Only swap back and front buffers after a successful present
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39077 >
2026-01-05 23:25:19 +00:00
Jesse Natalie
2805822141
wgl: Support contexts created from non-window DCs
...
Store the original HDC along with the HWND if we can get an HWND. If we
have the HWND, then the original HDC is basically useless, but if we don't,
we can use the HDC as a lookup key for the framebuffer.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39077 >
2026-01-05 23:25:19 +00:00
Marek Olšák
fe45960b8a
radeonsi: fix clip/cull distance gathering for mesh shaders
...
clipdist_mask was always 0. Just merge the codepaths to reuse what we
have for VS/TES/GS.
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39147 >
2026-01-05 22:58:36 +00:00
Marek Olšák
cf333ae9a2
radeonsi: fix incorrect PS shader key with sample shading
...
discovered when writing a sample shading test
Fixes: 65398d571b - radeonsi: ignore pipe_rasterizer_state::force_persample_interp
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39147 >
2026-01-05 22:58:36 +00:00
Marek Olšák
c49d1bbea9
radeonsi: fix slightly incorrect assertions in si_shader_ps
...
Fixes: 5be9d76861 - radeonsi: fix an assertion failure in si_shader_ps with AMD_DEBUG=mono
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39147 >
2026-01-05 22:58:36 +00:00
Marek Olšák
07265681fb
radeonsi: remove the PointSize output if it has no effect
...
GL_VERTEX_PROGRAM_POINT_SIZE disables the output. This removes it from
shaders to reduce HW overhead.
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39147 >
2026-01-05 22:58:36 +00:00
Alyssa Rosenzweig
347a0ac212
panfrost,nir: drop my lonely Authors tags
...
We all know who wrote a bunch of Panfrost code. No need to repeat this a million
places, the copyright line is plenty.
in cases where there's a joint me & Italo/Eric/.. tag, i've left it alone to
respect others' potential wishes.
$ find . -type f -exec perl -i -p0e 's/ \*\s+\* Author[^\n]+\s+\*\s+Alyssa[^\n]+\n \*\// \*\//' \{} \;
v2: delete more tags (Boris).
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Eric R. Smith <eric.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39136 >
2026-01-05 17:47:52 +00:00
Pohsiang (John) Hsu
aba2bb4a16
mediafoundation: handle the case where output sample is returning after MFT has been released.
...
we can't use pipe object in stat pool on shutdown, because the pipe object is released when the MFT is released.
For async sink (i.e mp4 sinkwriter), the output samples can be returning after HMFT is released.
Reviewed-by: Yubo Xie <yuboxie@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39131 >
2026-01-05 16:47:45 +00:00
Anna Maniscalco
6a68542167
zink: fix use_reusable_pool condition
...
The code originally disabled reuse whenever a pNext was passed to
`bo_create_internal`, however code has been added before it that messed
with the pointer disabling it more often that necessary.
Rearrange code to restore the original check.
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39008 >
2026-01-05 16:19:00 +00:00
Pavel Ondračka
7abe0363c7
r300: invalidate texture cache when clearing texture bound for sampling
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38842 >
2026-01-05 10:32:18 +00:00
Pavel Ondračka
07f8729361
r300: add explicit late lowering for a + -0
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
(('fadd', a, 0.0), a) worked for both a + 0 and a + -0 before, but now
requires explicit pattern after 0d255011ae
Just noticed because it pushed few dEQPs over the instruction limit.
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39151 >
2026-01-04 19:45:45 +00:00
Eric Engestrom
ee5e6245ce
zink+nvk/ci: document fixed tests
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39150 >
2026-01-04 12:40:12 +01:00
Eric Engestrom
3533853566
lavapipe/ci: document recent flakes
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39140 >
2026-01-03 16:27:56 +00:00
Eric Engestrom
c63732463a
radv/ci: document recent flakes
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39140 >
2026-01-03 16:27:56 +00:00
Marek Olšák
d0dd5a5f57
ac,radeonsi: move SX PS downconversion code into ac_formats.c
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39093 >
2026-01-02 16:46:20 +00:00
Marek Olšák
2674cd1c05
radeonsi: fix halved pixel throughput for a few non-blended 16bpp/32bpp formats
...
Fixed formats:
* GL_R16F
* GL_RG16F
* GL_RGB10_A2UI
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39093 >
2026-01-02 16:46:20 +00:00
Job Noorman
9fbb202172
tu,freedreno: add chicken bit to enable (eolm)
...
(eolm) does not have any effect without this chicken bit set.
Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31885 >
2026-01-02 14:08:48 +01:00
Marek Olšák
27dcc2b949
rusticl: call nir_opt_intrinsics
...
required by radeonsi
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:29 +00:00
Marek Olšák
b72b313d1d
radeonsi: move info fields from si_shader_selector to si_shader_info
...
also move the code into si_shader_info.c
si_shader_info::msaa_images becomes unused, so is removed.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:29 +00:00
Marek Olšák
3f23421dc5
radeonsi: remove si_shader_selector::*_descriptors_index fields
...
They are trivial to compute.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:29 +00:00
Marek Olšák
f00f054087
ac,radeonsi: move lowering to load_color0/1 to ac_nir_lower_ps_early
...
It's better to have these all in one pass.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:29 +00:00
Marek Olšák
99a42bdd4b
nir,radeonsi: simplify load_color0 & load_color1 intrinsics and shader_info
...
We don't need the shader_info fields anymore. sample and centroid fields
are unused. The interp field is already available from
si_shader_info::color_interpolate.
The loads don't need to be sysvals. Add also the _amd suffix.
Don't handle it in st_nir_lower_drawpixels either because the intrinsics
are created much later in compilation now.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:28 +00:00
Marek Olšák
86fc413098
radeonsi: merge 2 PS color input lowering passes for monolithic shaders
...
si_nir_lower_color_inputs_to_sysvals is mostly undone by
si_nir_lower_ps_color_inputs.
Merge them into a new pass si_nir_lower_color_flatshade_twoside, which
surprisingly doesn't need si_shader_info.
si_nir_lower_color_inputs_to_sysvals will continue to be used
by non-monolithic shaders.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:28 +00:00
Marek Olšák
80c26d3aec
radeonsi: call si_nir_lower_color_inputs_to_sysvals in si_preprocess_nir
...
si_shader_info gathering must be rewritten for colors because it no longer
receives load_color0/1 intrinsics. This makes radeonsi handle color inputs
more like all other drivers.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:27 +00:00
Marek Olšák
04047f0df6
radeonsi: remove the rest of si_lower_nir
...
st/mesa already calls all these passes.
Only our passthrough TCS was missing one pass.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:27 +00:00
Marek Olšák
d8f8b57686
radeonsi: move more lowering from si_lower_nir to si_preprocess_nir
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:27 +00:00
Marek Olšák
81adf1ea71
radeonsi: remove glsl_tests subdirectory
...
This hasn't been used for 9 years.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:26 +00:00
Marek Olšák
041cde6aa1
radeonsi: move sparse intrinsic lowering to a separate file, call it later
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:26 +00:00
Marek Olšák
2dc16ccb8f
radeonsi: lower task & mesh shader IO is si_preprocess_nir
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:26 +00:00
Marek Olšák
9d271d171a
radeonsi: call nir_lower_gs_intrinsics in si_preprocess_nir
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:25 +00:00
Marek Olšák
f2947e2fd8
radeonsi: use ac_nir_opt_vectorize_cb
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:25 +00:00
Marek Olšák
a32a189386
radeonsi: call nir_opt_16bit_tex_image in si_postprocess_nir
...
It's slightly changed and some cleanup passes are run afterwards
to do exactly what RADV does.
We also have to call nir_lower_alu_width, otherwise ACO fails.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:24 +00:00
Marek Olšák
a20f189a04
radeonsi: don't set progress uselessly in si_postprocess_nir
...
it's unused here
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:24 +00:00
Marek Olšák
6a1eeefce5
radeonsi: call nir_lower_fp16_casts in si_postprocess_nir
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:23 +00:00
Marek Olšák
cd1e6982a8
radeonsi: move NIR callbacks to si_get.c
...
they are only used to set NIR options
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:22 +00:00
Marek Olšák
823565fff1
radeonsi/ci: update gfx12 flakes
...
The uniform block tests are only flaky with LLVM.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:22 +00:00
Marek Olšák
55d53e827a
radeonsi: use si_preprocess/postprocess_nir function names
...
Most drivers use such names.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:22 +00:00
Marek Olšák
8ceef4e3d4
radeonsi: lower compute system values later
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:21 +00:00
Marek Olšák
3cc5517925
radeonsi: move CS sysval si_shader_info fields into si_shader_variant_info
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:21 +00:00
Marek Olšák
04e6e70e69
radeonsi: move CS user SGPR layout determination into si_shader_variant_info
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:20 +00:00
Marek Olšák
1bff4115e7
radeonsi: rename si_shader_info & si_shader_variant_info sysval fields
...
the prefix is changed to uses_sysval_*, some variables are renamed
completely to match the NIR names
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:19 +00:00
Marek Olšák
ce7c989b2b
radeonsi: fold nir_lower_compute_system_values_options into pass parameters
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:18 +00:00
Marek Olšák
2250b05067
radeonsi: lower nir_var_mem_shared later
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:18 +00:00
Marek Olšák
d320a6553c
radeonsi: update XFB info in the correct place after mediump IO lowering
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802 >
2026-01-01 18:30:16 +00:00