Marek Olšák
72948d9ff9
radeonsi,aco: remove the VS prolog
...
The upside is that this removes 600 lines of code. The downside is
that if instance divisors are used, we will compile the VS on demand.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27120 >
2024-02-07 09:50:53 +00:00
Marek Olšák
0496cd5e5a
gallium/noop: don't leak resources due to take_ownership
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492 >
2024-02-07 09:19:42 +00:00
Marek Olšák
47c1f389ed
gallium: remove take_ownership from set_vertex_buffers, assume it's true
...
This removes the take_ownership parameter and defines the behavior as if
take_ownership was always true, which is the fast path. This way, we don't
have to have 2 codepaths in set_vertex_buffers of every driver.
The old behavior is optionally available through util_set_vertex_buffers.
It also documents a new constraint that count in set_vertex_buffers must be
equal to the number of vertex buffers referenced by vertex elements or 0.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492 >
2024-02-07 09:19:42 +00:00
Marek Olšák
b23f52b7e4
gallium/u_threaded: allow drivers to change tc_call_set_vertex_buffers function
...
Move the execute function pointers to struct threaded_context, so that
drivers can change it. Also move struct tc_vertex_buffers into the header
file, so that drivers can implement their own function.
This allows drivers to inline pipe_context::set_vertex_buffers for TC.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492 >
2024-02-07 09:19:42 +00:00
Marek Olšák
b66ee99bc2
gallium/u_threaded: remove the count=0 path from tc_call_set_vertex_buffers
...
The default path has the same behavior.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492 >
2024-02-07 09:19:42 +00:00
Marek Olšák
6ab25f5cde
cso: remove CSO_UNBIND_VERTEX_BUFFER0
...
It has no effect other than unreferencing buffers, which are then
immediatelly re-bound by st/mesa, so it doesn't do anything.
The name is also incorrect because it unbound all vertex buffers.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492 >
2024-02-07 09:19:42 +00:00
Marek Olšák
47b15d83a2
gallium/hud: set take_ownership=true for set_vertex_buffers
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492 >
2024-02-07 09:19:42 +00:00
Marek Olšák
7fbb758e56
st/mesa: set take_ownership=true for set_vertex_buffers in st_pbo_draw
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492 >
2024-02-07 09:19:42 +00:00
Marek Olšák
3186131ea5
st/mesa: set take_ownership=true for util_draw_vertex_buffer in st_DrawTex
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492 >
2024-02-07 09:19:42 +00:00
Marek Olšák
e271d342a4
gallium/util: add take_ownership parameter into util_draw_vertex_buffer
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492 >
2024-02-07 09:19:42 +00:00
Marek Olšák
0ee35cc443
st/mesa: set take_ownership=true for set_vertex_buffers in st_draw_quad
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492 >
2024-02-07 09:19:42 +00:00
Marek Olšák
ab3e029e40
gallium/u_blitter: set take_ownership=true for set_vertex_buffers
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492 >
2024-02-07 09:19:41 +00:00
Marek Olšák
f0b31858e1
gallium: always set vertex elements before setting vertex buffers
...
Drivers can use this constraint to merge vertex elements and vertex
buffers in set_vertex_buffers instead of in draw_vbo.
Suggested by: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8142
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492 >
2024-02-07 09:19:41 +00:00
Erik Faye-Lund
2683038b1c
glapi: move EXT_texture_storage to the right position
...
I somehow thought this list was sorted roughly alphabetical, but it's
actually sorted by the extension number. Whoops, let's fix that.
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27452 >
2024-02-07 08:48:20 +00:00
Marek Olšák
fff6d332d9
radeonsi/ci: add gfx11 flakes
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27408 >
2024-02-07 02:30:45 -05:00
Marek Olšák
33aac684b4
radeonsi: use num_vertex_buffers instead of ARRAY_SIZE
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27408 >
2024-02-07 02:30:42 -05:00
Marek Olšák
0e02149ac9
winsys/amdgpu: don't ref/unref slab BOs in amdgpu_cs_submit_ib
...
It's pointless to increase the refcount of the backing BO and then decrease
it in the same function when we already reference the slab entry BO that
holds the reference of the backing BO.
amdgpu_do_add_buffer is inlined in amdgpu_cs_submit_ib, so the new parameter
doesn't cost anything.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27408 >
2024-02-07 02:30:39 -05:00
Marek Olšák
04de7cc985
winsys/amdgpu: simplify amdgpu_do_add_buffer to remove memset
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27408 >
2024-02-07 02:30:36 -05:00
Marek Olšák
c79697fec5
winsys/amdgpu: skip code checking RADEON_USAGE_SYNCHRONIZED for slabs
...
We unset RADEON_USAGE_SYNCHRONIZED, but we still checked it.
Iterate over such buffers separately without checking
RADEON_USAGE_SYNCHRONIZED.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27408 >
2024-02-07 02:30:25 -05:00
Marek Olšák
0911aea126
winsys/amdgpu: merge 2 loops iterating over real BOs in amdgpu_cs_submit_ib
...
The first loop updates sequence numbers. The second loop creates the BO list.
Do both in the same loop.
Each loop has to reload the whole BO list from the L2 cache or higher, so we
do it twice. By merging the loops, we only load the BO list from the L2
cache once.
The final result is actually 2 loops, but they iterate over different ranges
of the BO list, so each element is read only once.
If global_bo_list is enabled, it overwrites the BO list after all is done.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27408 >
2024-02-07 02:30:22 -05:00
Marek Olšák
d704f92b13
winsys/amdgpu: merge 2 loops iterating over sparse BOs in amdgpu_cs_submit_ib
...
The first loop is inside amdgpu_add_sparse_backing_buffers. The second loop
iterates over sparse BOs to update sequence numbers.
Each loop has to reload the whole BO list from the L2 cache or higher, so we
do it twice. By merging the loops, we only load the BO list from the L2
cache once.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27408 >
2024-02-07 02:30:20 -05:00
Marek Olšák
32625c7903
winsys/amdgpu: merge 2 loops iterating over slab entries in amdgpu_cs_submit_ib
...
The first loop is inside amdgpu_add_slab_backing_buffers. The second loop
iterates over BOs to update sequence numbers.
Each loop has to reload the whole BO list from the L2 cache or higher, so we
do it twice. By merging the loops, we only load the BO list from the L2
cache once.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27408 >
2024-02-07 02:30:18 -05:00
Marek Olšák
77e96cec6e
winsys/amdgpu: move code out of amdgpu_add_bo_fences_to_dependencies for reuse
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27408 >
2024-02-07 02:30:16 -05:00
Marek Olšák
436ebe4ef6
winsys/amdgpu: change the signature of amdgpu_add_bo_fences_to_dependencies
...
for future work
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27408 >
2024-02-07 02:30:14 -05:00
Marek Olšák
75ffd738ac
winsys/amdgpu: add real buffers of slab entries in the CS thread
...
This removes the overhead from the driver thread and simplifies
amdgpu_cs_add_buffer.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27408 >
2024-02-07 02:30:12 -05:00
Marek Olšák
41f6d24fc8
winsys/amdgpu: fix a race condition when reading ws->num_buffers
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27408 >
2024-02-07 02:30:10 -05:00
Jordan Justen
4957d352dd
intel/dev: Add device info for ARL
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352 >
2024-02-06 21:23:19 +00:00
Jordan Justen
964042d50c
anv/query: Follow MTL code paths on ARL
...
Ref: 0a52002a1c
("anv: disable reset query pools using blorp opt on MTL")
Ref: b3b12c2c27
("anv: enable CmdCopyQueryPoolResults to use shader for copies")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352 >
2024-02-06 21:23:19 +00:00
Jordan Justen
c1ffd0a037
anv/drirc: Extend option to disable FCV optimization to ARL
...
Ref: 01046cd6ad
("anv/drirc: add option to disable FCV optimization")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352 >
2024-02-06 21:23:19 +00:00
Jordan Justen
c3a0483f5b
intel/compiler: Lower DPAS instructions on ARL except ARL-H
...
Ref: bspec 55414
Ref: 951e08fc18
("intel/compiler: Disable DPAS instructions on MTL")
Suggested-by: José Roberto de Souza <jose.souza@intel.com >
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352 >
2024-02-06 21:23:19 +00:00
Jordan Justen
e2b09b8559
isl: Handle ARL in isl_drm_modifier_get_score()
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352 >
2024-02-06 21:23:19 +00:00
Jordan Justen
9ce0fe460a
isl: Define MOCS for ARL
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352 >
2024-02-06 21:23:19 +00:00
Jordan Justen
362ccd3874
intel/dev: Define engine prefetch for ARL
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352 >
2024-02-06 21:23:19 +00:00
Jordan Justen
c616ce8153
intel/i915: ARL also supports the set-PAT uapi
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352 >
2024-02-06 21:23:19 +00:00
Jordan Justen
edf93db5ee
iris: Extend MTL modifiers to ARL devices
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352 >
2024-02-06 21:23:19 +00:00
Jordan Justen
a443a824ad
intel/l3: Define l3 config for ARL
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352 >
2024-02-06 21:23:19 +00:00
Jordan Justen
546652b31a
intel/dev: Add intel_device_info_is_mtl_or_arl()
...
MTL and ARL share many code paths, and this macro will make it easier
to check for either of them.
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352 >
2024-02-06 21:23:19 +00:00
Jordan Justen
1d08282060
intel/dev: Add ARL platform enums
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352 >
2024-02-06 21:23:19 +00:00
David Rosca
fa8e0ba3f7
frontends/va: Fix updating AV1 rate control parameters
...
Follow the same logic as H264.
Fixes: 5edbecb856
("frontends/va: adding va av1 encoding functions")
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27481 >
2024-02-06 21:07:28 +00:00
Eric Engestrom
cff5bc5af7
pvr: enable VK_EXT_headless_surface on all platforms except Windows
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27448 >
2024-02-06 20:32:39 +00:00
Eric Engestrom
58e7085cb0
lvp: enable VK_EXT_headless_surface on all platforms except Windows
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27448 >
2024-02-06 20:32:39 +00:00
Eric Engestrom
bb0791535a
vn: enable VK_EXT_headless_surface on all platforms except Windows
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27448 >
2024-02-06 20:32:38 +00:00
Eric Engestrom
7667802b7d
panvk: enable VK_EXT_headless_surface on all platforms except Windows
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27448 >
2024-02-06 20:32:38 +00:00
Eric Engestrom
64081b9f46
nvk: enable VK_EXT_headless_surface on all platforms except Windows
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27448 >
2024-02-06 20:32:38 +00:00
Eric Engestrom
5f373dec88
dzn: enable VK_EXT_headless_surface on all platforms except Windows
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27448 >
2024-02-06 20:32:38 +00:00
Eric Engestrom
b10f61f98e
hasvk: enable VK_EXT_headless_surface on all platforms except Windows
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27448 >
2024-02-06 20:32:38 +00:00
Eric Engestrom
32800aa1d7
anv: enable VK_EXT_headless_surface on all platforms except Windows
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27448 >
2024-02-06 20:32:38 +00:00
Eric Engestrom
6407d0f0a2
tu: enable VK_EXT_headless_surface on all platforms except Windows
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27448 >
2024-02-06 20:32:38 +00:00
Eric Engestrom
11cf6965ea
v3dv: enable VK_EXT_headless_surface on all platforms except Windows
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27448 >
2024-02-06 20:32:38 +00:00
Eric Engestrom
faad4ffe97
radv: enable VK_EXT_headless_surface on all platforms except Windows
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27448 >
2024-02-06 20:32:38 +00:00