Dylan Baker
97980ebf6c
VERSION: update to 23.2.0-rc3
mesa-23.2.0-rc3
2023-09-05 09:48:17 -07:00
Dor Askayo
69f5c51b2d
nouveau: add exported GEM handles to the global list
...
Adding GEM handles to the global list is necessary to allow
maintaining a single reference count for handles that are shared
between multiple buffer objects.
Since exported handles can end up being shared with other buffer
objects, as in the case that drmPrimeHandleToFD() and gbm_bo_import()
are called externally to Mesa, they too must be added to the global
list.
Unfortunately, doing this properly requires a new libdrm API. Use
the best possible option for now.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9552
Signed-off-by: Dor Askayo <dor.askayo@gmail.com >
Acked-by: Karol Herbst <git@karolherbst.de >
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24648 >
(cherry picked from commit daa1f789b5 )
2023-09-01 11:58:23 -07:00
Karol Herbst
fc9ecb5931
nv50: fix code uploads bigger than 0x10000 bytes
...
The hardware has a max limit on how much data we can upload in one go via
the 2D engine. Just split the uploads up.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9571
Acked-by: M Henning <drawoc@darkrefraction.com >
Signed-off-by: Karol Herbst <git@karolherbst.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24706 >
(cherry picked from commit 7f63d2ebdb )
2023-09-01 11:58:23 -07:00
Julia Tatz
f6149e7ff6
aux/trace: fix set_hw_atomic_buffers method name
...
Fixes: b2dc63ed8c ("aux/trace: Add pipe_context::set_hw_atomic_buffers")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24482 >
(cherry picked from commit 9d1da9ec20 )
2023-09-01 11:58:23 -07:00
Julia Tatz
0f12f5dba6
gallium/dri: fix dri2_from_names
...
`createImageFromNames` uses fourcc, not dri_image_formats
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8547
Fixes: 433ca3127a ("st/dri: replace format conversion functions with single mapping table")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24597 >
(cherry picked from commit c4133a110d )
2023-09-01 11:58:22 -07:00
Mike Blumenkrantz
8aca433f4a
nir/zink: fix gs emulation xfb_info sizing
...
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24634 >
(cherry picked from commit df238e8fc0 )
2023-09-01 11:52:20 -07:00
Rhys Perry
9386fe103e
aco: don't create sendmsg(dealloc_vgprs) if scratch is used
...
LLVM does something similar: https://reviews.llvm.org/D153295
fossil-db (gfx1100):
Totals from 21 (0.02% of 133461) affected shaders:
Instrs: 147428 -> 147396 (-0.02%)
CodeSize: 797188 -> 797060 (-0.02%)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Fixes: 2930317cea ("aco/gfx11: deallocate VGPRs at the end of the shader")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24669 >
(cherry picked from commit c9b177db0e )
2023-09-01 11:52:20 -07:00
Italo Nicola
7033e01692
egl: reenable partial redraw with a warning when using gallium hud
...
Partial revert of e516a0a94f ("egl: disable partial redraw when gallium
hud is active").
We shouldn't change the behavior of the application when the hud is
enabled, doing so could make it harder do diagnose issues. Instead, now
we warn and ask the user to manually disable the extension if he
considers it to be worth it.
Fixes: e516a0a94f ("egl: disable partial redraw when gallium hud is active")
Signed-off-by: Italo Nicola <italonicola@collabora.com >
Reviewed-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23456 >
(cherry picked from commit 2edf222abd )
2023-09-01 11:52:19 -07:00
Paul Gofman
a45b1aecf5
driconf: add a workaround for Captain Lycop: Invasion of the Heters
...
CC: mesa-stable
Tested-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24639 >
(cherry picked from commit 6a2a36d7dd )
2023-09-01 11:52:19 -07:00
Mike Blumenkrantz
e59fb5130a
u/draw: skip zero-sized indirect draws
...
cc: mesa-stable
Acked-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24631 >
(cherry picked from commit 581f6fb7c8 )
2023-09-01 10:39:38 -07:00
Rhys Perry
34b2f00d9c
aco: summarize register demand after handling branches
...
Fixes various dEQP-VK.ray_query.builtin.rayqueryterminate.* crashes.
fossil-db (gfx1100):
Totals from 196 (0.15% of 133461) affected shaders:
PreSGPRs: 8342 -> 8558 (+2.59%)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Fixes: 5a536eca9c ("aco: calculate correct register demand for branch instructions")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24579 >
(cherry picked from commit efb80c1715 )
2023-09-01 10:39:37 -07:00
Mike Blumenkrantz
8dab73cab2
zink: fix crash in lower_pv_mode_gs_store
...
src->parent can be null
Fixes: 39770c6503 ("zink: fix store subsitution in `lower_pv_mode_gs_store`")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24642 >
(cherry picked from commit 04dbb556c2 )
2023-09-01 10:39:37 -07:00
Lionel Landwerlin
2febfbce39
anv: don't try to access dynamic buffers from surface states
...
Even with direct descriptors, our current implementation works by
doing A64 messages to read/write dynamic buffers. This is so that we
can apply the sliding range view of the descriptor while having
robustness support.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: 06dfd216d3 ("anv: add direct descriptor support to apply_layout")
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24256 >
(cherry picked from commit 7ec12b537a )
2023-09-01 10:39:36 -07:00
David Rosca
a2204efb8f
frontends/va: Ignore requested size when creating VAEncCodedBufferType
...
The buffer data is not directly accessible to application and it's
internally used to only store VACodedBufferSegment struct.
Ignore the size requested by application and instead allocate
sizeof(VACodedBufferSegment). Use calloc to zero out the struct.
This can save significant amount of memory, for example FFmpeg
will request up to tens of MB for single buffer.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6462
Reviewed-by: Thong Thai <thong.thai@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24410 >
(cherry picked from commit 7bcbfae87c )
2023-09-01 10:39:35 -07:00
David Heidelberg
94f2aaca0c
ci/deqp: really remove the uncompressed results.csv file
...
Arguments are parsed in order, so the `-c` here causes that first `--rm`
won't get applied and then it gets overriden by `-o` which writes the file.
Sadly zstd won't report this as a issue, but that's being reported in [1],
so maybe in future versions zstd will warn about it.
[1] https://github.com/facebook/zstd/issues/3719
Fixes: d110299d77 ("ci/deqp-runner: compress results.csv before uploading it to GitLab")
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24651 >
(cherry picked from commit 9bf104f934 )
2023-09-01 10:39:35 -07:00
Samuel Pitoiset
6d080b3e82
vulkan: ignore VkPipelineColorWriteCreateInfoEXT if the state is dynamic
...
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24601 >
(cherry picked from commit ce0c70fb0c )
2023-09-01 10:39:34 -07:00
Janne Grunau
dbb887f013
asahi,agx: Fix stack buffer overflow in agx_link_varyings_vs_fs
...
Discovered while running dEQP-EGL under address sanitizer.
Fixes: f3877f56ba ("asahi,agx: Rewrite varying linking")
Signed-off-by: Janne Grunau <j@jannau.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24635 >
(cherry picked from commit 3f8894b0f7 )
2023-09-01 10:39:30 -07:00
Derek Foreman
65d0399ccb
vulkan/wsi: Allow binding presentation_timing when software rendering
...
The presentation timing extension is used for doing WaitForPresent
properly, but we accidentally bind it after an early return intended to
stop us from binding dmabuf when software rendering.
Remove the early return.
cc: mesa-stable
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24588 >
(cherry picked from commit 5ba5bcf2b6 )
2023-08-31 23:41:23 -07:00
Eric Engestrom
8b5492aa31
panfrost: upcast uint8/uint16 before shifting them beyond their range
...
../src/panfrost/compiler/compiler.h:89:14: runtime error: left shift of 51966 by 16 places cannot be represented in type 'int'
#0 0x55c72fd7dda4 in bi_apply_swizzle ../src/panfrost/compiler/compiler.h:89
#1 0x55c72fd808d6 in bi_source_value ../src/panfrost/compiler/bi_opt_constant_fold.c:35
#2 0x55c72fd80a83 in bi_fold_constant ../src/panfrost/compiler/bi_opt_constant_fold.c:52
#3 0x55c72fb2080c in constant_fold_pred ../src/panfrost/compiler/test/test-constant-fold.cpp:48
#4 0x55c72fb21a65 in ConstantFold_Swizzles_Test::TestBody() ../src/panfrost/compiler/test/test-constant-fold.cpp:103
#5 0x55c73070cc97 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) ../src/gtest/src/gtest.cc:2621
#6 0x55c7306f0df7 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) ../src/gtest/src/gtest.cc:2657
#7 0x55c730694add in testing::Test::Run() ../src/gtest/src/gtest.cc:2696
#8 0x55c73069798d in testing::TestInfo::Run() ../src/gtest/src/gtest.cc:2845
#9 0x55c73069b684 in testing::TestSuite::Run() ../src/gtest/src/gtest.cc:3004
#10 0x55c7306ccfcb in testing::internal::UnitTestImpl::RunAllTests() ../src/gtest/src/gtest.cc:5890
#11 0x55c73071053c in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) ../src/gtest/src/gtest.cc:2621
#12 0x55c7306f4ed3 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) ../src/gtest/src/gtest.cc:2657
#13 0x55c7306c23fa in testing::UnitTest::Run() ../src/gtest/src/gtest.cc:5455
#14 0x55c730748faf in RUN_ALL_TESTS() ../src/gtest/include/gtest/gtest.h:2314
#15 0x55c730748ffa in main ../src/gtest/src/gtest_main.cc:63
#16 0x7f8554bcc1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#17 0x7f8554bcc284 in __libc_start_main_impl ../csu/libc-start.c:360
#18 0x55c72fb18be0 in _start (/builds/mesa/mesa/_build/src/panfrost/compiler/bifrost_tests+0xbd0be0)
Cc: mesa-stable
Signed-off-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24610 >
(cherry picked from commit 54c7099087 )
2023-08-31 23:41:22 -07:00
Friedrich Vock
5e903eeffa
radv: Handle VK_SUBOPTIMAL_KHR in trace layers
...
vkQueuePresentKHR might return VK_SUBOPTIMAL_KHR which is not VK_SUCCESS
but presentation succeeded anyway. We should capture a trace even if
VK_SUBOPTIMAL_KHR is returned.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24052 >
(cherry picked from commit b8edd19358 )
2023-08-31 23:41:22 -07:00
Mike Blumenkrantz
3841203348
zink: fix big tcs output io
...
as in the producer case, big io needs to reserve the appropriate number
of slots
fixes:
spec@arb_tessellation_shader@execution@variable-indexing@tcs-output-array-float-index-rd-after-barrier,Fail
spec@arb_tessellation_shader@execution@variable-indexing@tcs-output-array-float-index-wr-before-barrier,Fail
spec@arb_tessellation_shader@execution@variable-indexing@tcs-output-array-vec2-index-rd-after-barrier,Fail
spec@arb_tessellation_shader@execution@variable-indexing@tcs-output-array-vec2-index-wr-before-barrier,Fail
spec@arb_tessellation_shader@execution@variable-indexing@tcs-output-array-vec3-index-rd-after-barrier,Fail
spec@arb_tessellation_shader@execution@variable-indexing@tcs-output-array-vec3-index-wr-before-barrier,Fail
spec@arb_tessellation_shader@execution@variable-indexing@tcs-output-array-vec4-index-rd-after-barrier,Fail
spec@arb_tessellation_shader@execution@variable-indexing@tcs-output-array-vec4-index-wr-before-barrier,Fail
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24568 >
(cherry picked from commit ee6ba2bb57 )
2023-08-31 23:41:18 -07:00
Mike Blumenkrantz
1287fbdb3a
zink: explicitly set non-optimal last_vertex_stage shader key on ctx create
...
this otherwise results in generated gs not having the flag set, which breaks
various things
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24568 >
(cherry picked from commit ccc195c3a3 )
2023-08-31 23:41:16 -07:00
Mike Blumenkrantz
cd5e0498c5
lavapipe: block yuv formats from getting blit feature flags
...
this is illegal
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24589 >
(cherry picked from commit cee494aafd )
2023-08-31 23:41:16 -07:00
Mike Blumenkrantz
db50924867
lavapipe: fix resolves where src image has a layer offset
...
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24589 >
(cherry picked from commit 9e2f95eae3 )
2023-08-31 23:41:15 -07:00
Mike Blumenkrantz
7f37c0d07d
llvmpipe: fix early depth + alpha2coverage + occlusion query interaction
...
in this scenario, sample counting must happen before a2c, as a2c may eliminate
coverage if alpha is zero, leading to a sample count of zero
dEQP-VK.fragment_operations.early_fragment.sample_count_early_fragment_tests_depth_alpha_to_coverage_samples_4_maintenance5
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24589 >
(cherry picked from commit ce09458917 )
2023-08-31 23:41:14 -07:00
Mike Blumenkrantz
865584a081
llvmpipe: block weird uses of subsampled formats in buffers
...
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24589 >
(cherry picked from commit 632d4de214 )
2023-08-31 23:41:13 -07:00
timmac-qmc
b69bf84d23
glsl: fix potential crash with DisableUniformArrayResize
...
We still need to gather information on uniform use when skipping
uniform array resize.
Fixes: ac5af6c0 ("util/driconf: add Dune: Spice Wars workaround")
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24576 >
(cherry picked from commit ae5a08de67 )
2023-08-31 23:41:13 -07:00
Mike Blumenkrantz
da9cf451f5
zink: generated tcs is on the tes, not the vs
...
not sure how I screwed this up
Fixes: 4c47d83051 ("zink: use EXT_shader_object to implement generic separate shader precompile")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24581 >
(cherry picked from commit 717ad8c5c8 )
2023-08-31 23:41:11 -07:00
Lionel Landwerlin
6c71fd3e55
hasvk: fix null descriptor handling with A64 messages
...
This replicates the same fix we did for Anv and null descriptors with
A64 messages from commit efcda1c530 ("anv: fix null descriptor
handling with A64 messages").
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Cc: mesa-stable
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17545 >
(cherry picked from commit 0e5b4b1b43 )
2023-08-31 23:41:08 -07:00
Mike Blumenkrantz
7cd58273cc
aux/trace: fix winsys handle dumping
...
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24493 >
(cherry picked from commit 8dd2691020 )
2023-08-31 23:41:07 -07:00
Mike Blumenkrantz
b39929ed5c
zink: add more locking for pipeline cache
...
this ensures the size remains constant for entry updates
fixes #9494
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24559 >
(cherry picked from commit 1c1e09249c )
2023-08-31 23:41:06 -07:00
Mike Blumenkrantz
00ee04948b
zink: set msrtss depth resolve mode when enabled
...
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24309 >
(cherry picked from commit cf8fe9baec )
2023-08-31 23:41:05 -07:00
Mike Blumenkrantz
622b4eee12
zink: don't append msrtss to dynamic render if not supported
...
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24309 >
(cherry picked from commit 2630a89b72 )
2023-08-31 23:41:05 -07:00
Mike Blumenkrantz
98427a3dd5
zink: don't add VK_IMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT for transient images
...
this is illegal
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24309 >
(cherry picked from commit 751407a59a )
2023-08-31 23:41:04 -07:00
Mike Blumenkrantz
55e9c2d6ed
zink: fix zs resolve attachment indexing
...
this has never been tested until now
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24309 >
(cherry picked from commit 300cbedc78 )
2023-08-31 23:41:03 -07:00
Mike Blumenkrantz
9b18378a2c
zink: add batch refs for transient images
...
ensure these don't get deleted while in use
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24309 >
(cherry picked from commit 5ac2291c6b )
2023-08-31 23:41:02 -07:00
Samuel Pitoiset
633ec3e714
radv/rt: fix capture/replay support
...
When replaying a RT pipeline, RADEON_FLAG_REPLAYABLE should be set.
The idea is that for capture, RADEON_FLAG_REPLAYABLE should be passed
when allocating a BO (ie. replay_va would be 0), and then for replay
the VA would be non-zero but the flag is also required.
Fixes
dEQP-VK.ray_tracing_pipeline.pipeline_library.configurations.multithreaded_compilation.*.
Fixes: 744357477e ("radv: Add utilities to serialize and deserialize shader allocation info")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24543 >
(cherry picked from commit 1b66ebf09a )
2023-08-31 23:40:59 -07:00
David Heidelberg
926e9547c1
ci: add perfetto into mesa git-cache
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8821
Fixes: 8aff228127 ("ci: Enable building the testing drivers with perfetto.")
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23611 >
(cherry picked from commit c4357c6c49 )
2023-08-31 23:40:59 -07:00
Samuel Pitoiset
83428a9933
zink: fix setting VkShaderCreateInfoEXT::nextStage
...
nextStage has some restrictions depending on the current stage.
Fixes: cd6625c6eb ("zink: use EXT_shader_object to (re)implement separate shaders")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24558 >
(cherry picked from commit 478a18aa3d )
2023-08-31 23:40:58 -07:00
Julian Hagemeister
982b3d8fc8
Gallium: Fix shared memory segment leak
...
Commit abe6d750e5 caused shared memory
segments to be leaked. We need to mark shared memory segments for
deletion upon construction.
Fixes: abe6d750e5 xlib: fix glXDestroyContext in Gallium frontends
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9425
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24556 >
(cherry picked from commit 4c11fe8ae6 )
2023-08-31 23:40:57 -07:00
Martin Stransky
d212fb6009
llvmpipe: fix UAF in lp_scene_is_resource_referenced.
...
reworked slightly by airlied
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24414 >
(cherry picked from commit 87ec9456be )
2023-08-31 23:31:00 -07:00
Timothy Arceri
58e1cd7c68
glsl: fix spirv sso validation
...
The api validation calls will segfault without this as it will
try to fallback to string matching names which are NULL. This
would be incorrect behaviour even if the names weren't NULL so
here we correctly set the explicit location flag.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9483
Fixes: ffdb44d3a0 ("nir/linker: Add inputs/outputs to the program resource list")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24529 >
(cherry picked from commit a7850f8cf3 )
2023-08-31 23:30:46 -07:00
Dave Airlie
a60992ccea
zink: turn off threaded cpu access if not visible.
...
This turns off the threaded cpu access it the resource isn't visible.
Fixes a bunch of crashes with current nvk.
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24548 >
(cherry picked from commit ae6be7a44a )
2023-08-31 23:30:46 -07:00
Mike Blumenkrantz
7ca1c73798
nir/linking_helpers: force type matching in does_varying_match
...
this otherwise breaks when i/o is scalarized in the producer but not
the consumer
cc: mesa-stable
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24458 >
(cherry picked from commit ac00f5a361 )
2023-08-31 23:30:46 -07:00
Mike Blumenkrantz
11bbf33e31
nir/lower_io_to_scalar: fix 64bit io splitting
...
this was creating broken 64bit loads/stores using 32bit component
size
cc: mesa-stable
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24458 >
(cherry picked from commit 58ba2bcc8c )
2023-08-31 23:30:46 -07:00
Rob Clark
82db601297
tu/drm: Add missing error path cleanup
...
Fixes: bea6290ca0 ("turnip: device global bo list")
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23533 >
(cherry picked from commit 84524cfdfa )
2023-08-31 23:30:46 -07:00
Mike Blumenkrantz
d65ebabbb1
zink: unset line stipple ds3 state flags when stipple not available
...
Fixes: 7b4c1b3a42 ("zink: track and apply ds3 states only on change")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24478 >
(cherry picked from commit 122ffb0c88 )
2023-08-31 23:30:46 -07:00
Mike Blumenkrantz
575d50721e
zink: use VK_WHOLE_SIZE when binding null db buffer descriptors
...
using range=0 is illegal
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24478 >
(cherry picked from commit b2a9881475 )
2023-08-31 23:30:46 -07:00
Luigi Santivetti
06c60e7936
pvr: do not claim support for ASTC texture compression
...
We don't support any ASTC formats yet, but the textureCompressionASTC_LDR
feature was incorrectly set to true. Fix this by setting it to false and
don't advertise ASTC support for texture compression.
Fixes dEQP-VK.api.info.format_properties.compressed_formats
Fixes: 8991e646 ("pvr: Add a Vulkan driver for Imagination Technologies PowerVR Rogue GPUs")
Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24448 >
(cherry picked from commit c5a6e88c4e )
2023-08-31 23:30:45 -07:00
Mike Blumenkrantz
6f9cd27721
zink: force image barriers after dmabuf import
...
if the image will be used, then it has to be on the right queue
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24492 >
(cherry picked from commit 4f5bfc6691 )
2023-08-31 23:30:45 -07:00