Samuel Pitoiset
db573f7362
aco: add support for device clock on GFX11
...
According to LLVM, s_sendmsg_rtn(GET_REALTIME) should be used instead
of s_memrealtime.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19267 >
2022-10-25 20:23:08 +02:00
Samuel Pitoiset
c481978ac2
aco: split the sendmsg enumeration into sendmsg_rtn
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19267 >
2022-10-25 20:23:07 +02:00
Samuel Pitoiset
6630b6e2aa
aco: add support for s_sendmsg_rtn_b{32,64}
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19267 >
2022-10-25 20:23:05 +02:00
Samuel Pitoiset
3a3df9acda
ac/llvm: add support for device clock on GFX11
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19267 >
2022-10-25 20:22:48 +02:00
Rhys Perry
1c005e72f4
ac/nir: add legacy streamout and GS copy shader helpers
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19302 >
2022-10-25 17:35:08 +00:00
Rhys Perry
382831c986
radv,nir: add intrinsics for streamout and GS copy shaders
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19302 >
2022-10-25 17:35:08 +00:00
Emma Anholt
1ac42912cc
turnip: Enable LRZ testing (not writing) in the presence of discards.
...
We can LRZ test to not rasterize maybe-discarded pixels, as long as we
don't LRZ write a Z that may be discarded. We can drop this check,
because LRZ writes are already disabled by TU_LRZ_FORCE_DISABLE_WRITE, and
tu_6_build_depth_plane_z_mode() uses has_kill to choose EARLY_LRZ_LATE_Z
(or just LATE_Z if LRZ isn't enabled).
gfxbench aztec ruins: +7.93104% +/- 0.117845% (n=4)
ANGLE trex_200: +11.7208% +/- 0.476166% (n=3)
ANGLE aztec_ruins_high: +11.9138% +/- 0.147586% (n=3)
Fixes : #6327 (now vk-5-normal is +0.712724% +/- 0.0655751% to gl-5-normal)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19286 >
2022-10-25 16:55:59 +00:00
Eric Engestrom
bdfdc40a25
vc4: mark piglit copypixels-(draw-)sync as flaky
...
They sometimes fail when running all the tests together, but never when
running just them; not sure how to diagnose this, but for now jusk mark
them as flaky.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19295 >
2022-10-25 16:24:59 +00:00
Eric Engestrom
938e13c57d
vc4: send shaderdb output through KHR_debug
...
This allows us to see the file names for the shaders.
Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18599 >
2022-10-25 16:07:57 +00:00
Jose Maria Casanova Crespo
cc22016d71
vc4: consolidate shader-db output
...
[Eric: update output string format for new shaderdb]
Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18599 >
2022-10-25 16:07:57 +00:00
Eric Engestrom
8ed00732cd
vc4: use PIPE_MASK_RGBA name instead of its value 0xf
...
Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18599 >
2022-10-25 16:07:57 +00:00
Eric Engestrom
daaced111a
vc4: pre-compile shaders to make up for the lack of draw calls in shader-db
...
This means we don't have the variant keys, and need to make up one
variant and pre-compile it.
Signed-off-by: Eric Engestrom <eric@igalia.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18599 >
2022-10-25 16:07:57 +00:00
Brian Paul
11275ce2ee
llvmpipe: improve some if/switch code in llvmpipe_get_shader_param()
...
Move the PIPE_SHADER_CAP_PREFERRED_IR case into the switch statement.
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:13 +00:00
Brian Paul
68f507d126
llvmpipe: asst. clean-ups in lp_texture.[ch]
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:13 +00:00
Brian Paul
857cdd61e3
llvmpipe: asst. clean-ups in lp_tex_sample.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:13 +00:00
Brian Paul
5adb219e7c
llvmpipe: asst. clean-ups in lp_test_main.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:13 +00:00
Brian Paul
5384293479
llvmpipe: asst. clean-ups in lp_test_format.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:13 +00:00
Brian Paul
03b62d81cc
llvmpipe: asst. clean-ups in lp_test_conv.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:13 +00:00
Brian Paul
4fa266063c
llvmpipe: asst. clean-ups in lp_test_blend.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:13 +00:00
Brian Paul
eb4ff32c2d
llvmpipe: asst. clean-ups in lp_state_vertex.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:13 +00:00
Brian Paul
b96151cd3c
llvmpipe: asst. clean-ups in lp_state_tess.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:13 +00:00
Brian Paul
03bd429fab
llvmpipe: asst. clean-ups in lp_state_surface.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:13 +00:00
Brian Paul
47fa82d48e
llvmpipe: asst. clean-ups in lp_state_so.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
c2271fb787
llvmpipe: asst. clean-ups in lp_state_rasterizer.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
2c12af6cf0
llvmpipe: asst. clean-ups in lp_state_gs.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
f22de6db44
llvmpipe: asst. clean-ups in lp_state_cs.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
dd9b013bf5
llvmpipe: asst. clean-ups in lp_state_clip.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
b74b245c0d
llvmpipe: asst. clean-ups in lp_state_derived.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
0dfc90d81b
llvmpipe: asst. clean-ups in lp_state_sampler.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
6954599821
llvmpipe: asst. clean-ups in lp_scene.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
416fcfc6e5
llvmpipe: asst. clean-ups in lp_scene.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
75d7bb2e16
llvmpipe: asst. clean-ups in lp_linear_sampler.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
fa65ab5c6f
llvmpipe: asst. clean-ups in lp_linear_interp.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
8874c728e5
llvmpipe: asst. clean-ups in lp_flush.[ch]
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
fe9296de34
llvmpipe: asst. clean-ups in lp_fence.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
17695f796b
llvmpipe: asst. clean-ups in lp_draw_arrays.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
7dd9c79b2d
llvmpipe: asst. clean-ups in lp_debug.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
ee71e0d83a
llvmpipe: asst. clean-ups in lp_bld_interp.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
161d82c752
llvmpipe: asst. clean-ups in lp_bld_depth.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
54b6ccc10c
llvmpipe: asst. clean-ups in lp_bld_blend_aos.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
bee11cdab2
llvmpipe: asst. clean-ups in lp_bld_alpha.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
7d0616d835
llvmpipe: asst. clean-ups in lp_setup_tri.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
2ffb5b3688
llvmpipe: remove gotos in do_rect_ccw()
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
0b12ad1f6a
llvmpipe: asst. clean-ups in lp_setup_point.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
c4b222b9cf
llvmpipe: asst. clean-ups in lp_setup_line.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
e72c735cde
llvmpipe: asst. clean-ups in lp_setup_vbuf.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
6ef3881010
llvmpipe: asst. clean-ups in lp_setup_rect.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
5131200c28
llvmpipe: asst. clean-ups in lp_setup.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
5a63484b35
llvmpipe: asst. clean-ups in lp_query.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00
Brian Paul
49ab7d19bd
llvmpipe: asst. clean-ups in lp_screen.[ch]
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289 >
2022-10-25 15:27:12 +00:00