Marek Olšák
0e8beb1eed
radeonsi/gfx11: compile monolithic PS if it writes memory
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16990 >
2022-06-15 20:52:42 +00:00
Marek Olšák
ee7150da79
amd/gfx11: add PixelWaitSync packet fields
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16990 >
2022-06-15 20:52:42 +00:00
Marek Olšák
7d8847d963
ac/llvm: fix tcs_wave_id unpacking on gfx11
...
no effect on behavior because the higher bits are always zero
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16990 >
2022-06-15 20:52:42 +00:00
Emma Anholt
ae432b67b7
ci/dzn: Skip a test that intermittently times out at a minute.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17054 >
2022-06-15 20:30:46 +00:00
Christian Gmeiner
15f394cc7a
nir: Fix unused-variable compile warnings
...
Fixes: 8492e78f9d ("nir/deref: Handle SSBO array bindings specially")
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17021 >
2022-06-15 19:43:27 +00:00
Timur Kristóf
08435b1c6f
radv: Always use 3D block ID and grid size in task shaders.
...
These are needed to address the task draw and payload ring buffers
when the task shader dispatch is 3 dimensional.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17023 >
2022-06-15 18:28:58 +00:00
Timur Kristóf
0fb9573c57
ac/nir/taskmesh: Preserve workgroup ID Y and Z when applying firstTask.
...
NV_mesh_shader workgroups are only 1 dimensional, so it's OK to
only add firstTask to the X dimension.
However, let's keep the Y and Z dimensions so this doesn't mess up
the workgroup ID for future 3 dimensional task shader dispatches.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17023 >
2022-06-15 18:28:58 +00:00
Timur Kristóf
b243e94f07
radv: Lower mesh shader 3D workgroup ID to 1D index.
...
This allows future mesh shaders to use a 3D workgroup ID.
Also changes how the NV_mesh_shader first_task is emulated.
The new code moves the responsibility from ac_nir into radv.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17023 >
2022-06-15 18:28:58 +00:00
Timur Kristóf
e05f63f56c
ac/nir/ngg: Add mesh shader workgroup index.
...
This will allow lowering 3D workgroup ID to a 1D index.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17023 >
2022-06-15 18:28:58 +00:00
Timur Kristóf
856a8acab0
radv: Enable NGG wave ID for mesh shader scratch ring.
...
This wave ID is used to address the scratch ring, so it should be
enabled when the scratch ring is used.
Note: the naming is confusing here, as this ID is actually the same
accross the whole workgroup. (It would be more appropriate to call
it workgroup ID instead.)
Fixes: 0280b526d5
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17022 >
2022-06-15 18:05:51 +00:00
Yonggang Luo
a9e2c699aa
util/c11: Update function u_thread_create to be c11 conformance
...
Do not assume thrd_t to be a pointer or integer, as the C11 standard tells us:
thrd_t: implementation-defined complete object type identifying a thread
At https://en.cppreference.com/w/c/thread
So we always return the thread creation return code instead of thrd_t value, and judge the return
code properly.
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15087 >
2022-06-15 17:37:17 +00:00
Yonggang Luo
6e33ef2bb9
c11: Implement thread_local in c11/threads.h
...
Use thread_local when possible
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15087 >
2022-06-15 17:37:17 +00:00
Yonggang Luo
09cd5c9bdb
c11: Fixes memory leak of pack in thrd_create on win32
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15087 >
2022-06-15 17:37:17 +00:00
Yonggang Luo
e6392fcf3d
c11: Move the implementation of threads.h into c source code
...
By doing this, now the global variable impl_tss_dtor_tbl are only defined one time.
So the memory usage would reduced
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15087 >
2022-06-15 17:37:17 +00:00
Yonggang Luo
b7773fd105
util: Define WIN32_LEAN_AND_MEAN before include of windows.h in u_thread.h
...
This is a prepare for move the c11 threads implementation into c source code
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15087 >
2022-06-15 17:37:17 +00:00
Yonggang Luo
be00a7c8ac
glx: using C++11 keyword thread_local
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15087 >
2022-06-15 17:37:16 +00:00
Yonggang Luo
0f3064ee44
intel: using C++11 keyword thread_local
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15087 >
2022-06-15 17:37:16 +00:00
Chia-I Wu
af0080c4ef
turnip: advertise VK_EXT_border_color_swizzle
...
We already support the functionality so just advertise it. Pass all
dEQP-VK*border_swizzle*.
v2: update freedreno-a630-fails.txt
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17019 >
2022-06-15 15:48:47 +00:00
Samuel Pitoiset
4480e577a4
zink/ci: update list of failures again
...
Only two tests have been fixed and the list has been incorrectly
updated.
Fixes: b240be28e3 ("zink: check for pending clears to determine write status of zs attachments")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16975 >
2022-06-15 13:14:17 +00:00
Samuel Pitoiset
8589230602
radv/ci: add GLES/GLCTS testing with Zink on NAVI10
...
This includes GLES{2,3,21} and GL46.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Martin Roukala <martin.roukala@mupuf.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16975 >
2022-06-15 13:14:17 +00:00
Samuel Pitoiset
8ffabb2511
ci/valve: split .b2c-test into .b2c-test-vk and .b2c-test-gl
...
We have to use a different test image for GL.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Martin Roukala <martin.roukala@mupuf.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16975 >
2022-06-15 13:14:17 +00:00
Samuel Pitoiset
c895e5d140
zink/ci: change the surface type used for dEQP
...
This was for vk-cts-image, but it seems like Mesa CI only supports
pbuffer.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Martin Roukala <martin.roukala@mupuf.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16975 >
2022-06-15 13:14:17 +00:00
Brian Paul
470f8b2267
llvmpipe: asst. clean-ups in lp_scene.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
99dcb5bcec
llvmpipe: asst. clean-ups in lp_tex_sample.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
a14fd548f5
llvmpipe: asst. clean-ups in lp_linear_sampler.c
...
Whitespace fixes.
Move loop var decls into loops.
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
dde4f9969c
llvmpipe: fix comment typo in lp_bld_interp.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
eeb9938c64
gallivm: asst. clean-ups in lp_bld_nir.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
7f4d1c7486
llvmpipe: misc clean-ups in lp_bld_interp.c
...
Remove trailing whitespace.
Replace unsigned with enum types.
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
846900fe3f
gallivm: minor clean-ups in lp_bld_sample_soa.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
5a1ad575c8
llvmpipe: asst. clean-ups in lp_rast_priv.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
27decb562e
llvmpipe: asst. clean-ups in lp_rast_tri_tmp.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
0230d7a771
llvmpipe: asst. clean-ups in lp_bld_blend_aos.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
10b9958aab
llvmpipe: misc clean-up in lp_rast_tri.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
1e3d8791a6
llvmpipe: minor clean-ups in lp_state_fs_analysis.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
b81b24c67d
llvmpipe: minor whitespace/formatting cleanups in lp_state_setup.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
f5e2c6d86e
llvmpipe: whitespace clean-ups in lp_rast.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
26eeb0a090
llvmpipe: asst. clean-ups in lp_setup_tri.c, lp_setup_rect.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
c9cb9eec05
llvmpipe: asst. clean-ups in lp_state_fs_linear.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
03b256f405
llvmpipe: asst. clean-ups in lp_state_fs_linear_llvm.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
b61f3334d4
llvmpipe: minor clean-ups in lp_jit.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
c6bd6140de
llvmpipe: asst. clean-ups in lp_state_fs.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
3717acdc43
gallivm: clean-ups in lp_bld_tgsi.[ch]
...
And move/rename LP_MAX_INSTRUCTIONS.
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
9a4504af59
gallivm: asst. clean-ups in lp_bld_sample_soa.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
f921a55d83
llvmpipe: asst. clean-up in lp_setup_context.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
f18a23d87c
gallivm: clean-up in lp_bld_sample.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
dee76459ca
llvmpipe: asst. clean-up and add comments in lp_state_fs.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
8432e0ee3d
llvmpipe: asst. clean-ups in lp_scene.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
c1ddfa15a4
llvmpipe: asst. clean-ups in lp_linear.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
b3dc37d22d
llvmpipe: asst. clean-ups in lp_rast.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
e060d7747d
llvmpipe: fix comment typo in lp_linear_fastpath.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00