Francisco Jerez
e14f85366e
nir/lower_int64: Fix float16 to int64 conversions.
...
Currently float16 to int64 conversions don't work correctly, because
the "div" variable has an infinite value, since 2^32 isn't
representable as a 16-bit float, which causes the result of of rem(x,
div) to be NaN for all inputs, leading to an incorrect result. Since
no values of magnitude greater than 2^32 are representable as a
float16 we don't actually need to do the fdiv/frem operations, the
conversion is equivalent to f2u32 with the result padded to 64 bits.
Rework:
* Jordan: Handle f16 in if/else rather than conditional
Fixes: 936c58c8fc
("nir: Extend nir_lower_int64() to support i2f/f2i lowering")
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19391 >
2022-11-07 06:18:08 +00:00
Tomeu Vizoso
ec9b9ff971
ci: Disable automatic jobs on Chromebooks with Comet Lake
...
During the weekend they started to show network problems so often that
they are unable to take on jobs.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19566 >
2022-11-07 06:50:16 +01:00
Marek Olšák
8b66c0ac76
amd: add cosmetic gfx10 and gfx11 changes
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19477 >
2022-11-06 18:16:48 -05:00
Marek Olšák
9cc58f0f49
ac/surface/tests: add more gfx103 and gfx11 tests
...
This might start timing out in the CI.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19477 >
2022-11-06 18:16:48 -05:00
Marek Olšák
24e8a6f17c
ac/llvm: don't use the mbcnt workaround for LLVM 16 and set range metadata
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19477 >
2022-11-06 18:16:48 -05:00
Marek Olšák
f78dad5e33
radeonsi: allow int16 with FP16 since it no longer hangs
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19477 >
2022-11-06 18:16:48 -05:00
Marek Olšák
8737d34add
radeonsi: remove clamping shader code from in-bounds blits
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19477 >
2022-11-06 18:16:45 -05:00
Marek Olšák
11993185a2
radeonsi: don't load/resolve/store non-existent src/dst channels in blit shaders
...
RGBX only loads and resolves 3 components, etc.
v2: buf fixes to make AMD_TEST=computeblit pass
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com > (v1)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19477 >
2022-11-06 18:15:25 -05:00
Marek Olšák
8956682810
amd: rename enums ARCTURUS -> MI100, ALDEBARAN -> MI200
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19477 >
2022-11-06 17:20:39 -05:00
Marek Olšák
bdfacd0a24
radeonsi/gfx11: fix compute scratch buffer - WAVES is always per SE
...
Fixes: ba02ed91a6
- ac/gfx11: fix the scratch buffer
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19477 >
2022-11-06 17:10:35 -05:00
Marek Olšák
803802c29f
radeonsi/ci: update CI results
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19477 >
2022-11-06 17:10:33 -05:00
Marek Olšák
bf5c1773c0
radeonsi: fix the compute wave size - it was always Wave32
...
si_determine_wave_size always returned 32 because shader->info was
uninitialized. Do it after it's initialized.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19477 >
2022-11-06 17:10:18 -05:00
Konstantin Seurer
c37357f4e0
radv/rra: Remove some node type validation
...
Node types can only be invalid for certain acceleration structure types.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19544 >
2022-11-06 17:03:52 +00:00
Konstantin Seurer
868107e16c
radv/rra: Improve validation message formatting
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19544 >
2022-11-06 17:03:52 +00:00
Konstantin Seurer
07bf85c2ec
radv/rra: Rename rra_accel_struct_validation_fail
...
...to rra_validation_fail since it is used quite often.
Shortening the name should improve readability.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19544 >
2022-11-06 17:03:52 +00:00
Konstantin Seurer
e5b3efe582
radv/rt: Restore prev barycentrics when rejecting hits
...
Closes : #6348
cc: mesa-stable
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19534 >
2022-11-06 11:36:10 +00:00
Yonggang Luo
7753e80219
util: Add multi-threaded test for util/u_debug.h and util/perf/u_trace.h
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18764 >
2022-11-05 20:40:55 +00:00
Yonggang Luo
2c1c87f76f
util: Fixes memory leak in __getProgramName
...
This is happened when multi-threading access to util_get_process_name
memory leak point:
Direct leak of 4097 byte(s) in 1 object(s) allocated from:
#0 0x7f42888c0e8f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x7f4288859d18 in __interceptor_realpath ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:3608
#2 0x55a9c272e03d in __getProgramName ../src/util/u_process.c:75
#3 0x55a9c272e03d in util_get_process_name ../src/util/u_process.c:197
#4 0x55a9c2746da7 in util_queue_init ../src/util/u_queue.c:416
#5 0x55a9c272c233 in queue_init ../src/util/perf/u_trace.c:403
#6 0x55a9c272c233 in u_trace_context_init ../src/util/perf/u_trace.c:453
#7 0x55a9c262eb54 in test_thread ../src/util/tests/perf/u_trace_test.cpp:14
#8 0x55a9c275228b in impl_thrd_routine ../src/c11/impl/threads_posix.c:67
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18764 >
2022-11-05 20:40:55 +00:00
Yonggang Luo
171c3c551a
util: Fixes debug_get_option_* thread safety by set initialized=true after the value get
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18764 >
2022-11-05 20:40:55 +00:00
Yonggang Luo
e2c3739a3f
util: It's not thread safe to set initialized=true before get the real GALLIUM_PRINT_OPTIONS
...
Even though initialized = true can make sure have no recursion, but that's may leading to
debug_get_option_should_print return false at the second thread, but the first thread
return true. These two threads should return the same value, even though this function is for
debug only, but it's better to getting it to be correct.
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18764 >
2022-11-05 20:40:55 +00:00
Bas Nieuwenhuizen
9a8453d07e
radv: Use compares for node type in traversal.
...
The HW has no bit test instruction, so we change 3 pairs of and+cmp
to a single and + 3 cmps, saving 2 VALU instructions.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19454 >
2022-11-05 16:38:48 +00:00
Yusuf Khan
4770d3f0ba
r600: enable memory objects
...
Support was there but the cap was not enabled
Signed-off-by: Yusuf Khan <yusisamerican@gmail.com >
Acked-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19406 >
2022-11-05 16:09:43 +00:00
David Heidelberg
39b9067b71
nine: enable on freedreno
...
nine-tests on Adreno 630:
~ 10000 passing
~ 85 failures
Acked-by: Rob Clark <robdclark@chromium.org >
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19244 >
2022-11-05 14:35:41 +00:00
David Heidelberg
cc485cfd7c
ci/broadcom: juint is already defined in .piglit-traces-test
...
Reviewed-by: Emma Anholt <emma@anholt.net >
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18532 >
2022-11-05 14:04:44 +00:00
Alex Brachet
c987a727a7
nir: Fix qsort comparator function
...
`pred` is a pointer, for sufficiently large numbers these
being cast to int were both > 0 regardless of the order
of `data1` and `data2`.
Fixes: 523a28d3fe
("nir: add an instruction set API")
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19539 >
2022-11-05 00:09:00 +00:00
António Monteiro
d31375b521
math: remove unused matrix_print & print_matrix_floats
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
c49aca943c
math: remove vector class
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
2d4d4df57a
math: remove unused debug classes
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
94e10ced83
math: remove unused matrix_is_general_scale
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
18702a28bd
math: remove unused matrix_has_rotation
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
55373642db
util: remove unused enter debug exit loggers
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
c7b70ca61a
util: remove fifo class
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
0c0812cf6e
util: remove unused debug_dump_enum_noprefix
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
dc0de85fed
util: remove unused debug_print_blob
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
c43c640809
util: remove unused set_random_entry
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
0b6c0bfa09
util: remove unused half_to_unorm8
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
e25fdc701b
gallium/util: remove unused macros and their functions from sse class
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
753b31c35e
gallium/util: drop unused sampler_view_default_dx9_template
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
7995050462
gallium/util: drop unused rect_area
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
4abb08ac60
gallium/util: Drop unused translate_prim_restart_ib
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
2c25d2ea90
gallium/util: Remove linear class
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
469251c898
gallium/util: Remove dirty surfaces class
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
3b98e2a556
gallium/util: Remove dirty flags class
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
António Monteiro
707d5b5b02
math: drop invert_matrix_perpective
...
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428 >
2022-11-04 23:20:02 +00:00
Samuel Pitoiset
06adf6ad11
radv: invalidate L2 instead of only writeback L2 when using DCC stores
...
It seems INV_L2 is the right thing to do, especially for RDNA2 chips
with non-coherent RBs (NAVI22 is one of these). This fixes DCC
corruption.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6476
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7507
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19516 >
2022-11-04 22:40:11 +00:00
Samuel Pitoiset
26c8fedc1b
radv: make the GDS/GDS OA buffer objects resident
...
GDS is used for NGG queries/streamout (GFX10+ only) and the BOs were
only added to the graphics queue because compute doesn't need them.
Though, the kernel emits a GDS switch when a queue submission doesn't
use GDS. That means that submitting jobs on the compute queue without
GDS can reset the state of the graphics queue and lead to GPU hangs.
The only viable solution for now is to make the GDS BOs resident to
avoid resetting the state between queues. This shouldn't introduce
more syncs between queues because GDS BOs are similar for both.
This fixes a GPU hang with Warhammer Chaosbane during loading time and
possibly some spurious random GPU hangs. Note that this GPU hang was
workarounded on the Steam side with RADV_DEBUG=nongg.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19466 >
2022-11-04 21:52:35 +00:00
Yonggang Luo
cdc1abad7b
util: include gles header instead of hand crafted macros
...
Now the glapi/glapi_dispatch.c are cleaned up because of this
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19509 >
2022-11-04 19:28:19 +00:00
Eric Engestrom
02d61c1b31
docs/amber: fix link to docs on amber branch
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19533 >
2022-11-04 19:22:45 +00:00
Sathishkumar S
f1ea0bc18a
gallium/vl: return the buffer plane order for yuv444p format
...
plane order is expected when trying to render yuv surfaces, update it for yuv444p
Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19445 >
2022-11-04 18:35:13 +00:00
Sathishkumar S
61c487719d
radeonsi/vcn: enable yuv formats supported on jpeg 2.5.0 and 2.6.0
...
decode of yuv444 yuv400 and yuv422 is supported on JPEG ip version 2.5.0 and 2.6.0.
Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19445 >
2022-11-04 18:35:13 +00:00