Sil Vilerino
3d6280c3c5
vl/null_sw_winsys: Add extern declaration for C++ usage
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30996 >
2024-09-03 17:21:05 +00:00
Sil Vilerino
2548471ca1
vl/vl_win32_screen_create_from_d3d12_device: Allow winsys to be injected
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30996 >
2024-09-03 17:21:05 +00:00
Sil Vilerino
fe98f32af3
d3d12: H264, HEVC, AV1 Store multiple rate control states for multiple temporal layers
...
Reviewed-By: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30945 >
2024-09-03 16:31:03 +00:00
Sil Vilerino
9c0b36eef2
pipe: Add pipe_h264_enc_pic_control.temporal_id
...
Reviewed-By: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30945 >
2024-09-03 16:31:02 +00:00
Sil Vilerino
895f528e0c
d3d12: Rename d3d12_video_encoder_config_dirty_flag_sequence_info to d3d12_video_encoder_config_dirty_flag_sequence_header
...
Reviewed-By: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30945 >
2024-09-03 16:31:02 +00:00
Rohit Athavale
1fb5131c2e
d3d12: Fix typo in copyright comments
...
Signed-off-by: Rohit Athavale <rathavale@microsoft.com >
Reviewed-By: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30945 >
2024-09-03 16:31:02 +00:00
Patrick Lerda
6ac3beeb85
iris: fix indirect draw refcnt imbalance
...
Indeed, the object ring_bo was not freed.
For instance, this issue is triggered with:
"piglit/bin/arb_shader_image_load_store-host-mem-barrier -auto -fbo"
while setting GALLIUM_REFCNT_LOG=refcnt.log.
Fixes: 5438b19104
("iris: enable generated indirect draws")
Signed-off-by: Patrick Lerda <patrick9876@free.fr >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30975 >
2024-09-03 16:06:09 +00:00
Mike Blumenkrantz
06d417af80
dril: use the super fallback path for software fallback
...
just in case gbm init fails somehow, swrast should still be able to
return some kind of fbconfigs
Fixes: ef88af8467
("dril: always take the egl init path")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30979 >
2024-09-03 15:31:48 +00:00
David Rosca
93a749c449
frontends/va: Fix locking in vlVaQueryVideoProcPipelineCaps
...
The mutex needs to be locked before accessing the handle table.
Cc: mesa-stable
Reviewed-By: Sil Vilerino <sivileri@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30935 >
2024-09-03 15:12:51 +00:00
David Rosca
fccf31c231
frontends/va: Fix locking in vlVaDeriveImage
...
The mutex needs to be locked before accessing the handle table.
After 64ca0fd2f2
("frontends/va: Allocate surface buffers on demand")
the issue is now much more likely to happen and can be reproduced when
transcoding using ffmpeg.
Cc: mesa-stable
Reviewed-By: Sil Vilerino <sivileri@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30935 >
2024-09-03 15:12:51 +00:00
Connor Abbott
5879eaac18
ir3: Increase compute const size on a7xx
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30995 >
2024-09-03 14:44:04 +00:00
Martin Roukala (né Peres)
e27a07de59
zink/ci: update the flakes list for ga106
...
Reviewed-by: Valentine Burley <valentine.burley@gmail.com >
Signed-off-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30973 >
2024-09-03 12:50:01 +00:00
Martin Roukala (né Peres)
9b4e46e8fc
radv/ci: update the flakes lists
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Signed-off-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30973 >
2024-09-03 12:50:01 +00:00
Samuel Pitoiset
0dc2a5bfee
radv: pass the vertex shader to radv_write_vertex_descriptors()
...
Mostly for DGC.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30916 >
2024-09-03 11:39:47 +00:00
Samuel Pitoiset
bd5dca3e81
radv: rename radv_vs_input_state to radv_vertex_input_state
...
"vs_state" is confusing because it could be "Vertex Shader state" but
it's not.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30916 >
2024-09-03 11:39:47 +00:00
Samuel Pitoiset
b3834b7dcd
radv: bind the static vertex input state from the pipeline
...
This removes one more pipeline dependency when writing VBO descriptors.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30916 >
2024-09-03 11:39:47 +00:00
Samuel Pitoiset
aea6cec434
radv: add radv_vs_input_state::attrib_index_offset
...
This is only used with static strides and it will allow us to bind
the static vertex input state from the pipeline.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30916 >
2024-09-03 11:39:47 +00:00
Samuel Pitoiset
dd673269e4
radv: only initialize per-attribute vertex input state when needed
...
The vertex shader uses per attribute VBO descriptors only when it uses
a prolog or when robustness is enabled.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30916 >
2024-09-03 11:39:47 +00:00
Samuel Pitoiset
4c181c33cc
radv: return early when the vertex input state is dynamic
...
state->vi is set to NULL by the vulkan runtime when the state is
dynamic.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30916 >
2024-09-03 11:39:47 +00:00
Lucas Stach
8fc977cb29
etnaviv: emit SAMPLER_LOG_SIZE on sampler state changes
...
The int filter enable bit in that state depends on both sampler view
and sampler state, so the state need to be re-evaluated and emitted
not only on sampler view changes, but also when the sampler state
changes.
CC: mesa-stable
Signed-off-by: Lucas Stach <l.stach@pengutronix.de >
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30605 >
2024-09-03 11:21:02 +00:00
Pierre-Eric Pelloux-Prayer
bfcee149ed
radeonsi: don't always update shader coherency draw call counter
...
The bug report has a sequence that looks like this:
* set tex as framebuffer
* dispatch a compute shader that doesn't use tex
* dispatch a compute shader that uses it
Since we were updating the counters at step 2, step 3 failed to realize
that calling si_make_CB_shader_coherent was needed.
While at it, this commit splits the draw call tracking counter in 2: one
for CB, one for DB.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11638
Cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30591 >
2024-09-03 09:21:17 +02:00
Alyssa Rosenzweig
9fa324c24c
hk: wire up compression
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
347c6e5405
hk: disable submission merging
...
this is causing rare CTS flakes. with this fused off, CTS is rock solid.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
b5899a2bf9
hk: shrink cmd bo
...
less wasteful
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
6e967ca811
hk: drop irrelevant comments
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
22347eb0e9
hk: lock device-wide scratch access
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
505fd350bc
hk: handle compressed eMRT
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
48d4c5b489
hk: fix bg key with eMRT
...
fixes dEQP-VK.multiview.draw_indexed.no_queries.1_2_4_8 with emrt forced.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
64495653eb
hk: remove texel buffers from meta
...
use AGX formatted load/store instead
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
70ec84e622
hk: prep for block based blitter
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
a76a2edfde
hk: rework meta for compression
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
50527475be
hk: be stricter about formats in copies
...
do something compression compatible.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
d19ac31fa7
asahi: add missing upcast for eMRT MSAA
...
fixes crash with eMRT in dEQP-VK.fragment_operations.early_fragment.samplemask_early_fragment_tests_depth_samples_4
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
a6c5f7dc20
asahi: handle cross-process eMRT
...
decompress in place, just in time.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
591bf066ba
asahi: add agx_fill_decompress_push helper
...
easy share between gl and vk
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
cd1c7ff776
asahi: fix fbfetch with eMRT
...
fall out from epilogs.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
bf910ce825
asahi: allow compute blitter to handle rgb9e5 blits
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
93695ceb48
asahi: factor out agx_usc_shared_non_fragment
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
4541688a85
asahi: allow rgb9e5 rendering internally
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
bcddf041eb
asahi: optimize aligned blits
...
we can optimize out a lot of logic in this (common) case.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
93785ae2fb
asahi: skip unmapped bo in fault dbg
...
segfault
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
1e2dcae4da
asahi,hk: deduplicate txf sampler settings
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
1f45aa37e0
asahi,ail: pull texture view logic into ail
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
ed08fe94d2
libagx: add in-place decompression kernel
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
3497cd2ed2
asahi/clc: add bindless image intrinsics
...
for decomp.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
b4b4c1908c
ail: add enums/queries for AGX compression modes
...
r/e'd black box by trying stuff and seeing what dEQP tests pass (:
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:15 +00:00
Alyssa Rosenzweig
942dd5aa66
ail: add metadata width/height in tile helpers
...
for decompress kernels
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:14 +00:00
Alyssa Rosenzweig
9f1e2e5053
ail: clarify metadata buffer calculation
...
there's a very good reason that the calculation is what it is.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:14 +00:00
Alyssa Rosenzweig
b0a8e623f9
ail: consider format for compressability
...
share the query
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:14 +00:00
Alyssa Rosenzweig
f977c52b84
ail: swallow up formats
...
ail is a more sensible place for the format tables to live. this does create a
bit of dependency soup but hey.
nfc
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30981 >
2024-09-02 23:27:14 +00:00