Commit graph

72666 commits

Author SHA1 Message Date
Pierre-Eric Pelloux-Prayer
e231405de2 radeonsi/sqtt: use radeon_add_to_buffer_list
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
No need to use ws->cs_add_buffer directly.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39194>
2026-02-12 10:08:44 +00:00
Pierre-Eric Pelloux-Prayer
e1081603ae radeonsi/sqtt: allocate BOs in VRAM
Having them in GTT makes read back fast but it also affects performance
a lot. Now that a staging buffer can be used for read back, we can
switch to VRAM without drawbacks.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39194>
2026-02-12 10:08:44 +00:00
Pierre-Eric Pelloux-Prayer
2f849f7f65 radeonsi/sqtt: use pipe_buffer_map instead of ws->buffer_map
pipe_buffer_map has heuristics to chose the best method to access
the BO's content, including using a staging buffer if needed.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39194>
2026-02-12 10:08:44 +00:00
Pierre-Eric Pelloux-Prayer
8f7f7a90b7 radeonsi/sqtt: use pipe_aligned_buffer_create to allocate bo
pipe_aligned_buffer_create can allow allocate 4GB but that's large enough
for now.
PIPE_USAGE_STREAM is used for now to keep the 2 BOs in GTT.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39194>
2026-02-12 10:08:43 +00:00
Pierre-Eric Pelloux-Prayer
6ffcb2f47e radeonsi/sqtt: retrieve sqtt data after the flush ended
This will allow to use a staging buffer to copy the sqtt data
without moving away the BO from VRAM (without this change,
the vram->staging copy won't be executed since we're in the
middle of a flush).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39194>
2026-02-12 10:08:43 +00:00
Ian Forbes
238437001b svga: Make svga_screen::hud members atomic
The OpenGL ES2 multithreaded conformance tests were hitting the underflow
assert because theses were non-atomic.

Signed-off-by: Ian Forbes <ian.forbes@broadcom.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39831>
2026-02-11 22:17:37 +00:00
Dave Airlie
c016346b50 gallivm: handle u16 correct on const loads.
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
I somehow screwed this up on my previous attempt at fixing this bug,

This should fix the loop limiter bug on big endian properly.

Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Cc: mesa-stable
Fixes: e28cfb2bad ("gallivm: handle u8/u16 const loads properly on big-endian.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39813>
2026-02-11 06:11:43 +10:00
Georg Lehmann
e63d487f5d ci: update trace checksums
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39641>
2026-02-10 18:42:03 +00:00
Georg Lehmann
7a23ff9cf8 gallium/ttn: use nan/inf preserve instead of exact for kill's flt
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39641>
2026-02-10 18:42:02 +00:00
José Roberto de Souza
4df142acb6 iris: Fix invalid reads when uploading blend state
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
blend_entries is already a uint32_t so its lenght should only be rt_dwords.
This fix invalid reads in the line below where the memcpy lenght is the
sizeof(blend_entries).

Valgrind warning:
==176211== Invalid read of size 2
==176211==    at 0x485A7CF: memmove (vg_replace_strmem.c:1415)
==176211==    by 0x810035C: iris_upload_dirty_render_state (iris_state.c:7643)
==176211==    by 0x8141B5B: iris_upload_render_state (iris_state.c:9055)
==176211==    by 0x8D19941: iris_simple_draw_vbo (iris_draw.c:195)
==176211==    by 0x8D1A034: iris_draw_vbo (iris_draw.c:346)
==176211==    by 0x7290116: tc_call_draw_single (u_threaded_context.c:3826)
==176211==    by 0x7290116: batch_execute (u_threaded_context_calls.h:11)
==176211==    by 0x7290116: tc_batch_execute (u_threaded_context.c:5344)
==176211==    by 0x7281583: _tc_sync (u_threaded_context.c:744)
==176211==    by 0x72868A2: tc_texture_map (u_threaded_context.c:2847)
==176211==    by 0x6975C23: pipe_texture_map_3d (u_inlines.h:680)
==176211==    by 0x697701C: st_ReadPixels (st_cb_readpixels.c:537)
==176211==    by 0x68E97C4: read_pixels (readpix.c:1216)
==176211==    by 0x68E97C4: _mesa_ReadnPixelsARB (readpix.c:1233)
==176211==    by 0x68E9889: _mesa_ReadPixels (readpix.c:1248)
==176211==  Address 0x1a792240 is 0 bytes after a block of size 144 alloc'd
==176211==    at 0x484C7A8: malloc (vg_replace_malloc.c:446)
==176211==    by 0x80A6829: iris_create_blend_state (iris_state.c:1815)
==176211==    by 0x7282E2F: tc_create_blend_state (u_threaded_context.c:1408)
==176211==    by 0x71F4FB0: cso_set_blend (cso_context.c:541)
==176211==    by 0x695CE93: st_update_blend (st_atom_blend.c:351)
==176211==    by 0x64C6C0B: st_validate_state (st_util.h:129)
==176211==    by 0x64C6D91: st_prepare_draw (st_draw.c:88)
==176211==    by 0x67F1D16: _mesa_draw_arrays (draw.c:1176)
==176211==    by 0x67F2795: _mesa_DrawArrays (draw.c:1386)
==176211==    by 0x4973339: stub_glDrawArrays (piglit-dispatch-gen.c:12483)
==176211==    by 0x49ECF1C: piglit_draw_rect_from_arrays (piglit-util-gl.c:746)
==176211==    by 0x49ED3A6: piglit_draw_rect_custom (piglit-util-gl.c:868)
==176211==
==176211== Invalid read of size 2
==176211==    at 0x485A7C0: memmove (vg_replace_strmem.c:1415)
==176211==    by 0x810035C: iris_upload_dirty_render_state (iris_state.c:7643)
==176211==    by 0x8141B5B: iris_upload_render_state (iris_state.c:9055)
==176211==    by 0x8D19941: iris_simple_draw_vbo (iris_draw.c:195)
==176211==    by 0x8D1A034: iris_draw_vbo (iris_draw.c:346)
==176211==    by 0x7290116: tc_call_draw_single (u_threaded_context.c:3826)
==176211==    by 0x7290116: batch_execute (u_threaded_context_calls.h:11)
==176211==    by 0x7290116: tc_batch_execute (u_threaded_context.c:5344)
==176211==    by 0x7281583: _tc_sync (u_threaded_context.c:744)
==176211==    by 0x72868A2: tc_texture_map (u_threaded_context.c:2847)
==176211==    by 0x6975C23: pipe_texture_map_3d (u_inlines.h:680)
==176211==    by 0x697701C: st_ReadPixels (st_cb_readpixels.c:537)
==176211==    by 0x68E97C4: read_pixels (readpix.c:1216)
==176211==    by 0x68E97C4: _mesa_ReadnPixelsARB (readpix.c:1233)
==176211==    by 0x68E9889: _mesa_ReadPixels (readpix.c:1248)
==176211==  Address 0x1a792242 is 2 bytes after a block of size 144 alloc'd
==176211==    at 0x484C7A8: malloc (vg_replace_malloc.c:446)
==176211==    by 0x80A6829: iris_create_blend_state (iris_state.c:1815)
==176211==    by 0x7282E2F: tc_create_blend_state (u_threaded_context.c:1408)
==176211==    by 0x71F4FB0: cso_set_blend (cso_context.c:541)
==176211==    by 0x695CE93: st_update_blend (st_atom_blend.c:351)
==176211==    by 0x64C6C0B: st_validate_state (st_util.h:129)
==176211==    by 0x64C6D91: st_prepare_draw (st_draw.c:88)
==176211==    by 0x67F1D16: _mesa_draw_arrays (draw.c:1176)
==176211==    by 0x67F2795: _mesa_DrawArrays (draw.c:1386)
==176211==    by 0x4973339: stub_glDrawArrays (piglit-dispatch-gen.c:12483)
==176211==    by 0x49ECF1C: piglit_draw_rect_from_arrays (piglit-util-gl.c:746)
==176211==    by 0x49ED3A6: piglit_draw_rect_custom (piglit-util-gl.c:868)
==176211==

Cc: stable
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39661>
2026-02-10 14:27:56 +00:00
Lakshman Chandu Kondreddy
fb2646e527 freedreno/layout, tu: Fix UBWC block sizes for PIPE_FORMAT_R8_G8B8_420_UNORM
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
The Y and UV planes of PIPE_FORMAT_R8_G8B8_420_UNORM have different
UBWC block sizes. Add support to use the correct block sizes for
this format based on the plane.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39576>
2026-02-10 07:16:49 +00:00
José Expósito
757ae04bd9 winsys/amdgpu: Fix userq job info log on PPC
On the ppc64le architecture the macro printing the userq job info fails
to compile with error:

   In file included from ../src/gallium/winsys/amdgpu/drm/amdgpu_cs.cpp:11:
   ../src/gallium/winsys/amdgpu/drm/amdgpu_cs.cpp: In function ‘int amdgpu_cs_submit_ib_userq(amdgpu_userq*, amdgpu_cs*, uint32_t*, unsigned int, uint32_t*, unsigned int, uint64_t*, uint64_t)’:
   ../src/gallium/winsys/amdgpu/drm/amdgpu_cs.cpp:1652:20: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
   1652 |          mesa_logi("amdgpu: uq_log: %s:  num_wait_fences=%d  uq_va=%llx  job=%llx\n",
   1653 |                    amdgpu_userq_str[acs->queue_index], userq_wait_data.num_fences, fence_info[i].va,
         |                                                                                    ~~~~~~~~~~~~~~~~
         |                                                                                                  |
         |                                                                                                  __u64 {aka long unsigned int}
   ../src/util/log.h:78:70: note: in definition of macro ‘mesa_logi’
      78 | #define mesa_logi(fmt, ...) mesa_log(MESA_LOG_INFO, (MESA_LOG_TAG), (fmt), ##__VA_ARGS__)
         |                                                                      ^~~
   ../src/gallium/winsys/amdgpu/drm/amdgpu_cs.cpp:1652:20: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
   1652 |          mesa_logi("amdgpu: uq_log: %s:  num_wait_fences=%d  uq_va=%llx  job=%llx\n",
   1653 |                    amdgpu_userq_str[acs->queue_index], userq_wait_data.num_fences, fence_info[i].va,
   1654 |                    fence_info[i].value);
         |                    ~~~~~~~~~~~~~~~~~~~
         |                                  |
         |                                  __u64 {aka long unsigned int}
   ../src/util/log.h:78:70: note: in definition of macro ‘mesa_logi’
      78 | #define mesa_logi(fmt, ...) mesa_log(MESA_LOG_INFO, (MESA_LOG_TAG), (fmt), ##__VA_ARGS__)
         |                                                                      ^~~

Parse the parameters to fix the failure.

Fixes: 2547fd0f59 ("winsys/amdgpu: print userq job info")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39775>
2026-02-09 21:35:45 +00:00
Karol Herbst
240bae6b23 rusticl/mesa: only use resource_from_user_memory if the cap is advertised
Fixes some buffer tests on some iris configurations.

Cc: mesa-stable
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Tested-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39785>
2026-02-09 17:59:55 +00:00
Yiwei Zhang
3750e42f5c pan/kmod: clean up unused flags from bo import paths
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Tested-by: Valentine Burley <valentine.burley@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39723>
2026-02-09 17:01:23 +00:00
OPNA2608
41b9dc3a2c rocket: Fix printing of rknpu_mem_create.dma_addr
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
The Linux kernel's __u64 isn't always implemented as a long long, and there's no nice define for printing it like with uint64_t.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39119>
2026-02-09 11:26:01 +00:00
OPNA2608
4c699087d4 vc4: Fix printing of get_tiling.modifier
The Linux kernel's __u64 isn't always implemented as a long long, and there's no nice define for printing it like with uint64_t.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38151>
2026-02-09 11:08:52 +00:00
Samuel Pitoiset
5a9e1db405 zink/ci: update checksum of one trace running on VANGOGH
It's actually an unrelated change, it's a weird difference between
fast-clears and slow clears, but it looks exactly the same for humans.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39729>
2026-02-09 08:41:07 +00:00
Emma Anholt
2c3d3d23d8 freedreno/a5xx: Convert a bunch of LO/HI regs to 64-bit regs.
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Much prettier cffdec output.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39764>
2026-02-08 20:54:35 +00:00
Icenowy Zheng
9dfcd141cf util/cpu: add a number of RISC-V extensions
Add a few RISC-V extensions that could be detected by the riscv_hwprobe
interface of Linux v6.5+, and add caps for FD/C extensions.

The real probe code will come in the following commit, only a stub that
still assumes GC is added.

Adding these bits also changed the size of non-cache-related CPU
information from 4 dwords to 5, so the code hashing it for shader cache
in llvmpipe is also updated.

Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39154>
2026-02-07 17:34:02 +00:00
Brian Paul
35c7cad18b gallivm: fix undefined CALLOC_STRUCT build error
Seen on Ubuntu 22.04 w/ LLVM 14.0.0

Signed-off-by: Brian Paul <brian.paul@broadcom.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38775>
2026-02-07 10:07:22 +00:00
Kenneth Graunke
c5859b2d40 intel: Rename wm_prog_key to fs_prog_key
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
This is the shader key for the fragment shader.  Nobody even knows
what the windowizer/masker unit is or does anymore.  Even on Gen4-6,
"fs" is still clearer.  This makes the codebase easier to read.

This is only about 15 years overdue.

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39748>
2026-02-06 20:52:01 -08:00
Kenneth Graunke
56e638be81 intel: Rename wm_prog_data to fs_prog_data
This is the program data for the fragment shader.  Nobody even knows
what the windowizer/masker unit is or does anymore.  Even on Gen4-6,
"fs" is still clearer.  This makes the codebase easier to read.

This is only about 15 years overdue.

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39748>
2026-02-06 20:51:59 -08:00
Kenneth Graunke
beb4b78fe7 intel: Rename intel_msaa_flags to intel_fs_config
This started out as dynamic configuration for MSAA related state, but
has since expanded to cover many dynamic fragment shader options.

We rename it to intel_fs_config, similar to intel_tess_config, to
better indicate its purpose.

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39748>
2026-02-06 20:51:43 -08:00
Emma Anholt
9aa93039d9 ci/zink: Skip ext-no-config-context for now, due to taking out the X server.
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
This, plus the single-threading of piglit, means that
arb_timer_query-timestamp-get seems to usually pass now, rather than
usually fail.  Still listed as a flake because I haven't stress tested.

Oh, and add in a test that flake-timeouted (3 minutes long) twice in a row
for me.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39747>
2026-02-06 23:22:59 +00:00
Aleksi Sapon
ecf6ac2537 lavapipe: update fails
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38316>
2026-02-06 15:34:33 +00:00
Aleksi Sapon
9fcbaf5d89 llvmpipe: fix incorrect image 64bit fetch return value type
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38316>
2026-02-06 15:34:33 +00:00
Aleksi Sapon
d1421e3a1c llvmpipe: update traces
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38316>
2026-02-06 15:34:33 +00:00
Aleksi Sapon
f4f1ba1fb2 llvmpipe: add stride argument to lp_build_swizzle_aos_n
Acked-by: Roland Scheidegger <roland.scheidegger@broadcom.com>
Acked-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38316>
2026-02-06 15:34:33 +00:00
Aleksi Sapon
3bd8a5e3f1 llvmpipe: add GALLIVM_PERF=no_lod_ellipse
Acked-by: Roland Scheidegger <roland.scheidegger@broadcom.com>
Acked-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38316>
2026-02-06 15:34:33 +00:00
Aleksi Sapon
22436cb0f0 llvmpipe: implement per-fragment anisotropic rho
Return correct results when using explicit derivatives.

Acked-by: Roland Scheidegger <roland.scheidegger@broadcom.com>
Acked-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38316>
2026-02-06 15:34:33 +00:00
Aleksi Sapon
4baf977faa llvmpipe: elliptical derivative transform for anisotropic filtering
This improves a lot the quality of anisotropic filtering on surfaces
with a high angle of incidence.

This can also be used for non-anisotropic filtering, but the effect isn't
as pronounced, and might not be worth the cost. In fact in my testing,
it didn't seem to be used on Apple hardware.

Based on this excellent article:
https://pema.dev/2025/05/09/mipmaps-too-much-detail/

Acked-by: Roland Scheidegger <roland.scheidegger@broadcom.com>
Acked-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38316>
2026-02-06 15:34:33 +00:00
Aleksi Sapon
5699772386 llvmpipe: pass explicit derivatives to sampling codegen
Don't use the lower sampling call in NIR since it doesn't implement
the right algorithm for LOD computation. It's overly simplified.

Acked-by: Roland Scheidegger <roland.scheidegger@broadcom.com>
Acked-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38316>
2026-02-06 15:34:33 +00:00
Utku Iseri
cf48da58a7 zink: ignore msrtss support on panvk
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/39736>
2026-02-06 14:31:18 +00:00
Utku Iseri
d5ce03fa21 zink: add arm and panvk to invalid<->linear
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39736>
2026-02-06 14:31:18 +00:00
Daniel Schürmann
52a5b29497 radeonsi: vectorize UBO, SSBO and shared across blocks
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39373>
2026-02-06 10:16:50 +00:00
Georg Lehmann
9c80f3ae34 r600/sfn: remove unpack_half support
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39511>
2026-02-06 06:12:36 +00:00
Georg Lehmann
e267a3cda2 r600/sfn: lower unpack_half to f2f32
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39511>
2026-02-06 06:12:36 +00:00
Georg Lehmann
e5e7fc17f9 r600/sfn: implement minimal 16bit f2f32 support
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39511>
2026-02-06 06:12:36 +00:00
Georg Lehmann
ae4b34b9bd nouveau/codegen: remove support for unpack_half
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39511>
2026-02-06 06:12:36 +00:00
Dmitry Osipenko
2bcd7e0fcd crocus: Support virtio-gpu native context
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Add virtio-gpu native context support to Crocus driver.

Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29870>
2026-02-06 00:15:37 +00:00
Dmitry Osipenko
335d142dad crocus: Use intel_ioctl() consistently
Prepare Crocus code for addition of virtio native context support by
open-coding drm prime ioctls instead of using libdrm helpers and using the
intel_ioctl() helper. This is needed by virtio to be able to override the
ioctls implementation.

Suggested-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29870>
2026-02-06 00:15:37 +00:00
Dmitry Osipenko
d6f36224eb iris: Support virtio-gpu native context
Add virtio-gpu native context support to Iris driver.

Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29870>
2026-02-06 00:15:37 +00:00
Dmitry Osipenko
652e33b829 iris: Open-code drm prime ioctls
Prepare Iris code for addition of virtio native context support by
open-coding drm prime ioctls instead of using libdrm helpers. This
is needed by virtio to be able to override the ioctls implementation.

Suggested-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Acked-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29870>
2026-02-06 00:15:37 +00:00
Dmitry Osipenko
59fc94ffd2 intel: Check for userptr UAPI presence
Check whether userptr UAPI presents and disable userptr features if not.
Kernel i915 driver has config option that disables userptr ioctl. The
ioctl also may not present in a case of virtio native context driver.

Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29870>
2026-02-06 00:15:36 +00:00
Mauro Rossi
4d39741119 lavapipe: Fix gnu-empty-initializer error in NV_cooperative_matrix2 reductions
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Fixes the following building errors happening with clang:

FAILED: src/gallium/frontends/lavapipe/liblavapipe_st.a.p/nir_lvp_nir_lower_cooperative_matrix.c.o
...
../src/gallium/frontends/lavapipe/nir/lvp_nir_lower_cooperative_matrix.c:457:45: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer]
   nir_def *comps[NIR_MAX_VEC_COMPONENTS] = {};
                                            ^
../src/gallium/frontends/lavapipe/nir/lvp_nir_lower_cooperative_matrix.c:506:45: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer]
   nir_def *comps[NIR_MAX_VEC_COMPONENTS] = {};
                                            ^
2 errors generated.

Fixes: 2db1a624 ("lavapipe: add NV_cooperative_matrix2 reductions support")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39652>
2026-02-05 23:59:12 +00:00
Mauro Rossi
2457e0caf3 lavapipe: Fix gnu-empty-initializer error in NV_cooperative_matrix2 conversions
Fixes the following building errors happening with clang:

FAILED: src/gallium/frontends/lavapipe/liblavapipe_st.a.p/nir_lvp_nir_lower_cooperative_matrix.c.o
...
../src/gallium/frontends/lavapipe/nir/lvp_nir_lower_cooperative_matrix.c:113:45: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer]
   nir_def *comps[NIR_MAX_VEC_COMPONENTS] = {};
                                            ^
../src/gallium/frontends/lavapipe/nir/lvp_nir_lower_cooperative_matrix.c:114:49: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer]
   nir_def *out_comps[NIR_MAX_VEC_COMPONENTS] = {};
                                                ^
2 errors generated.

Fixes: 58f7fa3f ("lavapipe: add NV_cooperative_matrix2 conversions support")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39652>
2026-02-05 23:59:12 +00:00
Ian Forbes
ffc6fb6377 svga: Enable GL_ARB_vertex_type_10f_11f_11f_rev
This was a required vertex format in DX10 and should be available with
VGPU10.

https://learn.microsoft.com/en-us/windows/win32/direct3ddxgi/format-support-for-direct3d-feature-level-10-0-hardware#dxgi_format_r11g11b10_floatfns-26

Signed-off-by: Ian Forbes <ian.forbes@broadcom.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39693>
2026-02-05 20:48:58 +00:00
Mel Henning
2f6116e419 zink: Use NMin/NMax for fmin/fmax if nan_preserve
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Acked-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39682>
2026-02-05 17:19:05 +00:00
Mel Henning
e5d32d4f4a zink: Use float_controls2
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Acked-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39682>
2026-02-05 17:19:05 +00:00
Mel Henning
091426142c zink: Generalize spirv_builder_emit_exec_mode_id3
to take any number of ids

Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Acked-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39682>
2026-02-05 17:19:04 +00:00