Qiang Yu
0e97568aed
radeonsi: enable aco compile for part mode ps
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24989 >
2023-10-10 11:10:41 +08:00
Qiang Yu
333d6f007a
radeonsi: add ps epilog shader part build
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24989 >
2023-10-10 11:10:36 +08:00
Qiang Yu
42907365f8
radeonsi: fill aco shader info for ps part
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24989 >
2023-10-10 11:10:32 +08:00
Qiang Yu
a994db1d8f
radeonsi: extract si_get_ps_epilog_args to be shared with aco
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24989 >
2023-10-10 11:10:28 +08:00
Qiang Yu
e41833a6a2
radeonsi: add ps prolog shader part build
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24989 >
2023-10-10 11:10:24 +08:00
Qiang Yu
5263a9e364
ac,radeonsi: remove unused ps prolog key fields
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24989 >
2023-10-10 11:10:20 +08:00
Qiang Yu
1728111c29
radeonsi: extract si_get_ps_prolog_args to be shared with aco
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24989 >
2023-10-10 11:10:16 +08:00
Qiang Yu
9594a579b2
radeonsi: extract si_prolog_get_internal_binding_slot
...
To be shared with ps prolog.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24989 >
2023-10-10 11:10:11 +08:00
Qiang Yu
c4643477cd
radeonsi: init spi_ps_input_addr for part mode ps
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24989 >
2023-10-10 11:10:07 +08:00
Qiang Yu
c77a57b981
radeonsi: reduce sgpr count for scratch_offset when aco
...
aco add scratch_offset to shader args explicitly.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24989 >
2023-10-10 11:09:48 +08:00
Qiang Yu
f97a701d89
aco,radv,radeonsi: pass spi ps input ena and addr
...
radeonsi may pass different ena and addr when part mode shader.
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24973 >
2023-10-10 02:36:34 +00:00
Qiang Yu
38530b808e
ac,radeonsi: move ps arg pos_fixed_pt to ac_shader_args
...
It's a HW init reg, not driver spec user sgpr. radv just
doesn't use it. Move it to amd common for aco ps prolog
usage.
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24973 >
2023-10-10 02:36:33 +00:00
Emma Anholt
47024f22fe
ci/crocus: Disable flaky unvanquished-ultra trace
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25626 >
2023-10-10 01:24:47 +00:00
Emma Anholt
e25f5875bd
ci/zink: Skip dmat[34] op tests in general, as well
...
More "make full-run zink CI take less time". You still get dmat2 to see
if double matrices work at all.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25626 >
2023-10-10 01:24:47 +00:00
Emma Anholt
7d6d63e554
ci/zink: Skip 3-minute-long glx-visuals timeouts.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25626 >
2023-10-10 01:24:47 +00:00
Emma Anholt
9aec599678
ci/crocus: Generalize the drawarrays-vertex-count flakes.
...
We just got it for triangle fan as well.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25626 >
2023-10-10 01:24:47 +00:00
José Roberto de Souza
c8c1109bc6
iris: Nuke useless flags from iris_fine_fence_new()
...
Only IRIS_FENCE_TOP_OF_PIPE was changing the PIPE_CONTROL flags but it
was not set in any caller.
So we can remove IRIS_FENCE_* and flags from iris_fine_fence struct.
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25571 >
2023-10-09 21:12:56 +00:00
José Roberto de Souza
2641b8d1e0
iris: Lock bufmgr->lock before call vma_free() in error path
...
vma_free() requires that bufmgr->lock is held.
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25571 >
2023-10-09 21:12:55 +00:00
Mike Blumenkrantz
c8f4cfd641
zink: error at handle export on missing EXT_image_drm_format_modifier
...
this doesn't work anyway
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25526 >
2023-10-09 18:43:09 +00:00
Emma Anholt
e9e6a67600
i915: Use nir_group_loads() to reduce texture indirection phases.
...
total instructions in shared programs: 467049 -> 467040 (<.01%)
instructions in affected programs: 573 -> 564 (-1.57%)
total tex_indirect in shared programs: 14133 -> 14019 (-0.81%)
tex_indirect in affected programs: 491 -> 377 (-23.22%)
total temps in shared programs: 28543 -> 29178 (2.22%)
temps in affected programs: 3307 -> 3942 (19.20%)
LOST: 0
GAINED: 65
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25533 >
2023-10-09 17:14:10 +00:00
Emma Anholt
af823b5d58
i915: Make exceeding tex indirect count fatal.
...
The HW should fail to run shaders that have too many phases, so do this so
that we get link failures.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25533 >
2023-10-09 17:14:10 +00:00
Emma Anholt
4f78c27330
i915: Do a test compile at glLinkShader() time.
...
This lets us throw errors back to the app for shaders that are too
complex. The X server would really like to have this instead of guessing
based on renderer strings when shaders might be too complicated.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25533 >
2023-10-09 17:14:10 +00:00
Emma Anholt
2432f14d00
i915: Save fragment program compile error messages in the fragment shader.
...
We'll want this for doing linking failure messages for shaders that are
too long.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25533 >
2023-10-09 17:14:10 +00:00
Emma Anholt
8e81aff4bb
i915: Don't log I915_DEBUG=fs output for blit shaders.
...
Unless you have NIR_DEBUG=print_internal, the rest of the shader debug
pipeline is also hidden. Cleans up output when looking at shader-db
compiles.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25533 >
2023-10-09 17:14:09 +00:00
Emma Anholt
9c7d94c57e
i915: Print the relevant counts vs limits when throwing errors.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25533 >
2023-10-09 17:14:09 +00:00
Emma Anholt
0e284876ca
i915: Re-clang-format and enforce it in CI.
...
I want to be able to mash the format button at any point when hacking on
this thing instead of doing bespoke whitespace.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25533 >
2023-10-09 17:14:09 +00:00
Rob Clark
1e820ac128
freedreno: Rework supported-modifiers handling
...
We should be taking into account the format while deciding if we support
a given modifier or not. So a simple array of supported modifiers does
not do the trick.
While we are at it, also handle QCOM_TILED3. (We really only use
QCOM_TILED2 in GMEM so it isn't user visible.)
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9938
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25575 >
2023-10-08 18:07:37 +00:00
Gert Wollny
3c1020724e
virgl: Use common clear_texture if host doesn't support the feature
...
v2: Fix include (osy)
Fixes: a1eabeff (gallium: remove PIPE_CAP_CLEAR_TEXTURE)
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9944
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25580 >
2023-10-07 09:20:57 +00:00
Caio Oliveira
32b361089c
rusticl: Add Rust bindings for inline glsl_types functions
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25470 >
2023-10-07 00:42:55 +00:00
antonino
3a33e59596
zink: store bindless var when creating it to avoid creating it again
...
When bindless variables are created they get used directly and never
stored anywhere so if another bindless instruction is encountered
duplicate variables are created.
Fixes: fe2ba184d8 ("zink: use descriptor indices in compiler")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25591 >
2023-10-06 19:55:44 +00:00
Kai Wasserbäch
6d6d0b515e
fix: clover: LLVM 18: s/CodeGenOpt::/CodeGenOptLevel::/
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9833
Reference: 0a1aa6cda2
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25586 >
2023-10-06 16:05:40 +00:00
Kai Wasserbäch
5815a8e746
fix: clover: LLVM 18 renamed/moved CGFT_*, update compat layer
...
LLVm renamed and moved the CGFT_* stuff, we need to update the clover
compat header to follow suit.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9833
Reference: 0a1aa6cda2
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25586 >
2023-10-06 16:05:40 +00:00
Mike Blumenkrantz
06816cccb9
zink: don't check submit count for unflushed usage
...
unflushed usage is unflushed regardless of the submit count and is
critical for detecting multi-context synchronization
fixes Wolfenstein: The New Order load screen deadlock
Fixes: db12b881c7 ("zink: track/check submit info on resource batch usage")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25572 >
2023-10-06 05:30:22 +00:00
Emma Anholt
762210e224
ci/crocus: Add known piglit flakes
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25574 >
2023-10-06 04:06:29 +00:00
Konstantin Seurer
ac838c1c5c
mesa: Fix glBegin/End when LINE_LOOP is not supported
...
Emits the first vertex inside glEnd.
cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25346 >
2023-10-05 21:52:37 +00:00
Marek Olšák
7196b5318d
Revert "ac/gpu_info: replace ib_alignment with per-IP IB base and size alignments"
...
This reverts commit b6f435888b .
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25558 >
2023-10-05 19:12:29 +00:00
Marek Olšák
29f9c49228
Revert "winsys/amdgpu: pad gfx and compute IBs with a single NOP packet"
...
This reverts commit 43e7285069 .
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25558 >
2023-10-05 19:12:29 +00:00
Ganesh Belgur Ramachandra
e3e47aa96e
radeonsi: "clear_12bytes_buffer" shader in nir
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25221 >
2023-10-05 09:43:11 +00:00
Ganesh Belgur Ramachandra
3f44a8321f
radeonsi: "clear_render_target_1d_array" shader in nir
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25221 >
2023-10-05 09:43:11 +00:00
Ganesh Belgur Ramachandra
d0b14c56ea
radeonsi: "clear_render_target" shader in nir
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25221 >
2023-10-05 09:43:11 +00:00
Marek Olšák
340218c51e
radeonsi: upload shaders via a staging buffer so as not to map VRAM directly
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25494 >
2023-10-04 23:53:19 -04:00
Marek Olšák
23af6d3d35
radeonsi: add another aux context for uploading shaders
...
When the first auxiliary context is locked and wants to compile and upload
a shader asynchronously, we need to use another auxiliary context
in the compiler thread because the first one is locked at that point.
This adds an array of auxiliary contexts into si_screen and changes how aux
contexts are accessed.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25494 >
2023-10-04 23:53:16 -04:00
Konstantin Seurer
20e8760c75
zink: Enable edge flags with points
...
Fixes: 90a8525 ("zink: handle edgeflags")
Reviewed-by: Antonino Maniscalco <antonino.maniscalco@collabora.com>
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25335 >
2023-10-04 23:20:52 +00:00
Konstantin Seurer
4625e18619
nir/passthrough_gs: Support edge flags with points
...
Fixes: 24535ff ("nir: handle edge flags in nir_create_passthrough_gs")
Reviewed-by: Antonino Maniscalco <antonino.maniscalco@collabora.com>
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25335 >
2023-10-04 23:20:52 +00:00
Konstantin Seurer
3bf60f904b
zink: Initialize primitive types to an invalid value
...
The memory is zero initialized which corresponds to MESA_PRIM_POINTS.
Fixes: 659c39f ("zink: rework primitive rasterization type logic")
Reviewed-by: Antonino Maniscalco <antonino.maniscalco@collabora.com>
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25335 >
2023-10-04 23:20:52 +00:00
Igor Torrente
f0762f003d
zink: fix for startup crash of weston running on top of zink + venus
...
Venus asserts if we are transitioning to/from
`VK_IMAGE_LAYOUT_PRESENT_SRC_KHR` if we are not dealing with a wsi
image.
Now we detects this case and avoid transition the layout in this case.
Signed-off-by: Igor Torrente <igor.torrente@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25423 >
2023-10-04 22:28:32 +00:00
Marek Olšák
59ea386065
gallium/util: add more tests for compute-only contexts
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25389 >
2023-10-04 21:39:34 +00:00
Marek Olšák
b9289c51b5
gallium/util: fix GALLIUM_TESTS=1 by using cso_set_vertex_buffers_and_elements
...
util_draw_user_vertex_buffer no longer works with u_vbuf.
Add util_draw_user_vertices that does the right thing and use it.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25389 >
2023-10-04 21:39:34 +00:00
Marek Olšák
bc432ab9a0
radeonsi/ci: update navi10 results
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25515 >
2023-10-04 12:35:15 +00:00
Marek Olšák
f4d08bf92d
Revert "radeonsi: specialize si_draw_rectangle using a C++ template"
...
This reverts commit cd7e20f513 .
Navi1x turns off NGG when streamout queries are active, which breaks
the assumption of specialized si_draw_rectangle that NGG is always
enabled on Navi1x.
Fixes: cd7e20f513
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25515 >
2023-10-04 12:35:15 +00:00