Commit graph

71677 commits

Author SHA1 Message Date
Karol Herbst
495a46bf49 rusticl/util: use read_and_advance in Properties
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36780>
2025-08-15 00:13:06 +00:00
Karol Herbst
4826e37f24 rusticl/util: add read_and_advance methods for pointers
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36780>
2025-08-15 00:13:06 +00:00
Karol Herbst
060a084a12 rusticl: fix a bunch of warnings
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36780>
2025-08-15 00:13:06 +00:00
Karol Herbst
a1aed20842 rusticl: implement cl_ext_immutable_memory_objects
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Reviewed-by: Seán de Búrca <leftmostcat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36630>
2025-08-14 18:40:35 +00:00
Karol Herbst
d483566271 rusticl/mem: turn bool argument into enum in validate_mem_flags
Reviewed-by: Seán de Búrca <leftmostcat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36630>
2025-08-14 18:40:35 +00:00
Karol Herbst
bcec4acbd3 rusticl/mem: split out mem_flags validation for creation operations
validate_mem_flags is used by clCreate* and clGetSupportedImageFormats
which is a bit akward as those APIs have slightly different semantics on
the image flags and the clCreate* APIs support more flags with more
complex validation rules. And clGetSupportedImageFormats should be very
permissive in what combination of flags to accept.

Reviewed-by: Seán de Búrca <leftmostcat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36630>
2025-08-14 18:40:35 +00:00
Karol Herbst
61ad2bdf7f rusticl/kernel: create shader constants as immutable
Reviewed-by: Seán de Búrca <leftmostcat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36630>
2025-08-14 18:40:35 +00:00
Karol Herbst
c5f57f6594 rusticl/mesa: add ResourceType::Immutable
Reviewed-by: Seán de Búrca <leftmostcat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36630>
2025-08-14 18:40:34 +00:00
Yinjie Yao
4cb6094f2e ac,radeonsi/vcn: Use correct swizzle_mode for vcn4
On VCN4 SWIZZLE_MODE_8x8_1D_THIN_12_24BPP use different value
than previous VCN generations

Signed-off-by: Yinjie Yao <yinjie.yao@amd.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36775>
2025-08-14 17:24:40 +00:00
Eric Engestrom
0aef7ede1e zink+radv/ci: give gfx1201 piglit tests a display to use
Some checks are pending
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/36579>
2025-08-14 18:10:10 +02:00
Eric Engestrom
d0ef3c02c7 zink+radv/ci: give vangogh piglit tests a display to use
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36579>
2025-08-14 18:10:10 +02:00
Eric Engestrom
ef4b6808b9 zink+radv/ci: give navi31 piglit tests a display to use
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36579>
2025-08-14 18:10:10 +02:00
Eric Engestrom
c789def7a6 zink+radv/ci: give navi10 piglit tests a display to use
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36579>
2025-08-14 18:10:10 +02:00
Eric Engestrom
7f0b5a2c92 zink+radv/ci: give polaris10 piglit tests a display to use
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36579>
2025-08-14 18:10:09 +02:00
Eric Engestrom
003df4bb64 zink+radv/ci: add common fails for the next commits
The GPU-specific fails will be in each commit.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36579>
2025-08-14 18:10:09 +02:00
Eric Engestrom
c038839eb3 zink+radv/ci: fix typo in skips comment
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36648>
2025-08-14 16:07:04 +00:00
Eric Engestrom
c8c1541cd4 zink+radv/ci: deduplicate zink-radv-*-fails.txt files
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36648>
2025-08-14 16:07:04 +00:00
Eric Engestrom
2e26e1e86f zink+radv/ci: deduplicate zink-radv-*-skips.txt lists
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36648>
2025-08-14 16:07:04 +00:00
Eric Engestrom
90d692bd32 zink+radv/ci: set DRIVER_NAME=zink-radv to allow using common expectation files
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36648>
2025-08-14 16:07:04 +00:00
Eric Engestrom
3a211679f7 softpipe/ci: drop asan fails that are already tracked as normal fails
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36648>
2025-08-14 16:07:04 +00:00
Eric Engestrom
6ea6682384 lavapipe/ci: drop asan fails that are already tracked as normal fails
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36648>
2025-08-14 16:07:04 +00:00
Eric Engestrom
1b88e4a262 ci: set DRIVER_NAME in jobs that are implicitly inheriting skip lists
They were getting these through setting `GALLIUM_DRIVER`, which the next
commit removes.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36648>
2025-08-14 16:07:03 +00:00
Eric Engestrom
f6f091b9a6 softpipe/ci: document fixed tests
Unrelated to this MR, just noticed now.

They are likely missed by the current fraction on that job, which is why
this wasn't noticed.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36648>
2025-08-14 16:07:03 +00:00
Mike Blumenkrantz
117ac6ac0a tc: remove user cbuf uploads
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
this is no longer supported (drivers should set prefer_real_buffer_in_constbuf0)

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
2025-08-14 12:47:48 +00:00
Mike Blumenkrantz
b8cd48e8e8 gallium: always upload cbuf0 when cap is set
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
2025-08-14 12:47:47 +00:00
Mike Blumenkrantz
203ac73374 gallium: set prefer_real_buffer_in_constbuf0 for all drivers using tc
this isn't really a functional change since tc was always doing
cbuf uploads anyway

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
2025-08-14 12:47:47 +00:00
Mike Blumenkrantz
04c505c200 zink: destroy u_uploaders earlier in context destroy
these might get defer-deleted onto the batch states, so ensure they
don't leak in that way

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
2025-08-14 12:47:47 +00:00
Mike Blumenkrantz
cbb6e0277f r600: stop using util_set_vertex_buffers
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
2025-08-14 12:47:47 +00:00
Mike Blumenkrantz
2d1758242f r300: stop using util_set_vertex_buffers
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
2025-08-14 12:47:47 +00:00
Mike Blumenkrantz
9fd27814f1 freedreno: stop using util_set_vertex_buffers
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
2025-08-14 12:47:47 +00:00
Mike Blumenkrantz
e4da10b4cb tc: add a function to check the internal buffer lists
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
2025-08-14 12:47:47 +00:00
Mike Blumenkrantz
5d8ccf5986 tc: break out buffer list busy check
no functional changes

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
2025-08-14 12:47:46 +00:00
Mike Blumenkrantz
a7fd3b454b util/tc: don't print END_BATCH in debug
this is a garbage string anyway

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
2025-08-14 12:47:46 +00:00
Gert Wollny
b0468b5560 r600/sfn: remove extra slot of AR use
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Since we split the address load the extra slot reservation
for an address register load is no longer needed.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36742>
2025-08-14 11:58:04 +00:00
Gert Wollny
5d0f212d81 r600/sfn: Fix AR use tracking off-by-one error
The evauation of loading the AR register was off by one, so that
splitting an ALU group could actually happen after AR was loaded
resulting in a failure to lower to assembly.

Fixes: d617052db6 ("r600/sfn: take address loads into account when scheduling")

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36742>
2025-08-14 11:58:04 +00:00
Gert Wollny
63c801e8c2 r600/sfn: When splitting an ALU CF update possible start of next CF
Without this update a very long ALU block may not be splitted as
required and lowering to assembly may fail because the maximum
supported length of a ALU CF is overrun.

Fixes: 6aafa2bb49 ("r600/sfn: Split ALU blocks in scheduler to fit into 128 slots")

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36742>
2025-08-14 11:58:04 +00:00
Eric Engestrom
708e2edc23 llvmpipe/ci: consistently use x11- prefix for deqp-egl-x11
Some checks are pending
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/36759>
2025-08-13 15:12:31 +00:00
Valentine Burley
e4933d1d90 zink/ci: Document recent flakes on TGL
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36409>
2025-08-13 14:48:32 +00:00
Valentine Burley
4ba1128600 zink/ci: Add EGL coverage on lavapipe
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36409>
2025-08-13 14:48:32 +00:00
Valentine Burley
72af71a17a zink/ci: Run full zink-lavapipe job pre-merge
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36409>
2025-08-13 14:48:32 +00:00
Yonggang Luo
e54d5c9c13 virgl: Fixes differs in parameter lists
../src/gallium/drivers/virgl/virgl_context.c(1783): error C2220: the following warning is treated as an error
../src/gallium/drivers/virgl/virgl_context.c(1783): warning C4113: 'void (__cdecl *)(pipe_context *,pipe_fence_handle **,pipe_flush_flags)' differs in parameter lists from 'void (__cdecl *)(pipe_context *,pipe_fence_handle **,unsigned int)'

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36726>
2025-08-13 14:22:19 +00:00
Yonggang Luo
671bd2d7da virgl: Fixes warning: cast to smaller integer type 'unsigned long' from 'void *' [-Wvoid-pointer-to-int-cast]
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36726>
2025-08-13 14:22:19 +00:00
Corentin Noël
f78a52fd0a tgsi: Drop TGSI_SEMANTIC_TESS_DEFAULT_OUTER/INNER_LEVEL
Nothing is emitting this anymore and it is not used by virglrenderer too.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Acked-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36758>
2025-08-13 13:55:01 +00:00
Roland Scheidegger
67b90113a6 llvmpipe: Fix wrong GS invocation count when using instanced GS
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Each invocation obviously counts toward the total GS invocation count.

Reviewed-by: Brian Paul <brian.paul@broadcom.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36686>
2025-08-13 12:52:42 +00:00
Seán de Búrca
c579b8eff6 rusticl: adjust naming and assert usage for clarity
v2: make naming consistent across functions, incorporate earlier naming
changes

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36497>
2025-08-13 09:37:45 +00:00
Seán de Búrca
808484041c rusticl: execute program builds as jobs on a worker thread
v2: rework to use Rust closure for worker job function
v3: split preparatory restructuring into separate commit
v4: parallelize link and compile, adjust thread/job count
v5: split out naming changes to later commit, move validation to api/

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36497>
2025-08-13 09:37:45 +00:00
Seán de Búrca
56cc1b1c96 rusticl: restructure program build to prepare for parallelization
v2: include restructuring of link and compile, break out more functions
v3: split out naming changes to later commit

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36497>
2025-08-13 09:37:45 +00:00
Seán de Búrca
833481b6ab rusticl: introduce intermediate header object
This lets us take ownership of the header object without worrying about
lifetimes, enabling parallelization.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36497>
2025-08-13 09:37:44 +00:00
Seán de Búrca
e6fb1d5d32 rusticl: add abstraction for util_queue
v2: rework to use Rust closures for passed-in job function
v3: drop mutability requirement on queue for adding a job
v4: prevent external creation of fences, return from add_job_sync()
v5: add CPU count utility function based on util_get_cpu_caps()
v6: use &CStr for queue name for convenience
v7: make fence Send + Sync and don't require mutability for waiting

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36497>
2025-08-13 09:37:44 +00:00
Seán de Búrca
1ac5b99301 rusticl: consolidate linking code
v2: split out functional change to prior commit

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36497>
2025-08-13 09:37:44 +00:00