Iván Briano
c8ce254e4c
intel/rt: fix terminateOnFirstHit handling
...
If TraceRay() is called with the TerminateOnFirstHit flag, we need to
terminate the ray on the first confirmed intersection. This is handled
by the lowering of accept_ray_intersection and it's working fine for the
case of multiple instances of the intersection shader being called.
But if the shader calls reportIntersection() more than once, we were
handling them all and accepting the closest one regardless of the flag.
Check for the flag on every confirmed intersection and, if set, accept
it right there. The subsequent lowering will take care of terminating
handling the ray termination if necessary.
Fixes new test dEQP-VK.ray_tracing_pipeline.amber.flags-accept-first
Cc: mesa-stable
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30418 >
(cherry picked from commit f8553f56ac
)
2024-08-14 18:18:32 +02:00
Lionel Landwerlin
71125139f1
anv: reuse object string for RMV token
...
The current code is not handling the potential NULL pointer in
VkDebugUtilsObjectNameInfoEXT::pObjectName
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: e1b9a6e4f3
("anv: initial RMV support")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30516 >
(cherry picked from commit c6bf1f02c4
)
2024-08-14 18:18:29 +02:00
Lionel Landwerlin
576e9ff953
vulkan/runtime: allow null/empty debug names
...
VkDebugUtilsObjectNameInfoEXT::pObjectName can be NULL [1] :
"Applications may change the name associated with an object simply
by calling vkSetDebugUtilsObjectNameEXT again with a new string. If
pObjectName is either NULL or an empty string, then any previously
set name is removed."
The current code will segfault.
[1] : https://registry.khronos.org/vulkan/specs/1.3-extensions/html/chap50.html#VkDebugUtilsObjectNameInfoEXT
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: 3b361b234a
("vulkan: Implement VK_EXT_debug_utils")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30516 >
(cherry picked from commit ae9a249dfe
)
2024-08-14 18:18:28 +02:00
Mike Blumenkrantz
9a1327f2ec
pipe-loader: fix driconf memory management
...
this had a number of issues:
* pipe_loader_get_driinfo_xml() frees driver_driconf immediately,
except the driOptionCache struct string pointers are all just copied
in merge_driconf instead of having the strings copied, which means any
subsequent access of driver_driconf strings is invalid access
* pipe_loader_drm_get_driconf_by_name() is a disaster that only happened
to work because the dlopen here is the same lib that gets opened elsewhere
by mesa and not closed. if the lib here is actually closed, then all
the statically allocated strings become invalid, which means they need to
be manually copied
cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30494 >
(cherry picked from commit 0c220741e6
)
2024-08-14 18:18:19 +02:00
Marek Olšák
53005aead9
radeonsi: fix buffer coherency issues on gfx6-8,12 due to missing PFP->ME sync
...
This fixes random GPU hangs on gfx12 due to incoherent indirect buffer data,
causing random indirect vertex and instance counts, which timeouts if
the random numbers are large.
Fixes: a8abbbb172
- radeonsi: remove r600_pipe_common.h
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30503 >
(cherry picked from commit 83b88c54ba
)
2024-08-14 18:18:16 +02:00
Karol Herbst
5499c943cd
rusticl/kernel: properly respect device thread limits per dimension
...
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30504 >
(cherry picked from commit b3e925a21b
)
2024-08-14 18:10:37 +02:00
Karol Herbst
a0291c4041
zink: lower 8/16 bit alu ops vk spirv doesn't allow
...
Cc: mesa-stable
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30504 >
(cherry picked from commit b2225b9437
)
2024-08-14 18:10:35 +02:00
Karol Herbst
6eecba324a
zink: lower 64 bit find_lsb, ufind_msb and bit_count
...
Cc: mesa-stable
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30504 >
(cherry picked from commit 39ec184db6
)
2024-08-14 18:10:34 +02:00
Echo J
a5d8f4f975
util: Fix the integer addition in os_time_get_absolute_timeout()
...
This should fix glClientWaitSync() timing out too early with a INT64_MAX
timeout on radeonsi
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11615
Fixes: 7316cc92f3
("gallium/os: add conversion and wait functions for absolute timeouts")
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30476 >
(cherry picked from commit e14d1f5bc0
)
2024-08-14 18:10:32 +02:00
Mike Blumenkrantz
ca46312b87
kopper: check swapchain size after possible loader image resize
...
previously the size was checked at the top of the function, but this
ignored cases where the loader might end up resizing the drawable,
resulting in an attempted 0x0 swapchain creation based on stale
geometry
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30487 >
(cherry picked from commit a6d97b0afe
)
2024-08-14 18:10:30 +02:00
Karmjit Mahil
f3195e77dc
tu: Set TU_ACCESS_CCHE_READ
for transfer ops with read access
...
Transfer ops also use CCHE since they use the same path as
texture access.
This addresses the flakiness seen in
KHR-GL46.shader_storage_buffer_object.advanced-usage-sync-cs
CCHE wasn't being invalidated between the compute op and transfer
op which would sometimes lead to old/invalid data to be copied
in the transfer op.
Fixes: fb1c3f7f5d
("tu: Implement CCHE invalidation")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11458
Signed-off-by: Karmjit Mahil <karmjit.mahil@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30490 >
(cherry picked from commit cf9588bae6
)
2024-08-14 18:10:28 +02:00
Karol Herbst
05f1c0b9ea
mesa: check for enabled extensions for *UID enums
...
Applications might use them without checking if the extension is supported
and would run into a NULL pointer deref calling the callbacks.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30455 >
(cherry picked from commit 740cae64a1
)
2024-08-14 17:59:19 +02:00
Eric Engestrom
c86eba672a
.pick_status.json: Mark 93f9afa1e0
as denominated
2024-08-14 17:59:16 +02:00
Mike Blumenkrantz
9043fb5d8e
dri: link with libloader
...
this has always called loader_bind_extensions, so it should have been
linking with the loader
cc: mesa-stable
Reviewed-by: Eric Engestrom <eric@igalia.com >
Reported-by: Yurii Kolesnykov <root@yurikoles.com >
Tested-by: Yurii Kolesnykov <root@yurikoles.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30449 >
(cherry picked from commit 827812912d
)
2024-08-14 17:59:15 +02:00
Eric Engestrom
5f30a8d6a6
.pick_status.json: Mark 89863a050b
as denominated
2024-08-14 17:59:14 +02:00
Hans-Kristian Arntzen
568a691eba
wsi/common: Do not update present mode with MESA_VK_WSI_PRESENT_MODE.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no >
Reviewed-by: Sebastian Wick <sebastian.wick@redhat.com >
Fixes: ad71d584cf
("wsi/common: Add function to modify present mode.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30434 >
(cherry picked from commit 369e3cc20a
)
2024-08-14 17:59:00 +02:00
Lionel Landwerlin
807b8b7249
anv: fix check on pipeline mode to track buffer writes
...
We want to check the current mode of the pipeline, not the queue type
(since graphics can toggle between 3D & gpgpu modes).
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: 455a13fb7f
("anv: limit ANV_PIPE_RENDER_TARGET_BUFFER_WRITES to blorp operations using 3D")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11607
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30469 >
(cherry picked from commit fafa0d5abb
)
2024-08-14 17:58:57 +02:00
Timothy Arceri
327e37aad5
nir: set disallow_undef_to_nan for legacy ARB asm programs
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11389
Fixes: 861d274453
("nir: replace undef only used by ALU opcodes with 0 or NaN")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30419 >
(cherry picked from commit 298633e365
)
2024-08-14 17:58:55 +02:00
Rob Clark
6ffe16a5c4
freedreno/drm/virtio: Fix issues with 16k (or larger) page sizes
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Fixes: e6b2785811
("freedreno/drm/virtio: Use userspace IOVA allocation")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30431 >
(cherry picked from commit 87c889cd8a
)
2024-08-14 17:58:54 +02:00
Rob Clark
54a1b52e37
tu: Fix issues with 16k (or larger) page sizes
...
The iova allocations need to be CPU page aligned. (The GPU itself
always supports 4k mappings regardless of the smallest CPU page size,
but GEM buffer allocations must be an integer number of CPU pages.)
Signed-off-by: Rob Clark <robdclark@chromium.org >
Fixes: 63904240f2
("tu: Re-enable bufferDeviceAddressCaptureReplay")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30431 >
(cherry picked from commit 7fe3529715
)
2024-08-14 17:58:51 +02:00
Karol Herbst
f2a0f842e2
nouveau: handle realloc failure inside cli_kref_set
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11477
Fixes: 821f4c8d99
("nouveau: import libdrm_nouveau")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30374 >
(cherry picked from commit 801078cbf8
)
2024-08-14 17:52:25 +02:00
Konstantin Seurer
fdb48555da
aco: print s_delay_alu INSTSKIP>3 correctly
...
INSTSKIP has 3 bits.
Fixes: 94958e6
("aco: improve printing of s_delay_alu")
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30401 >
(cherry picked from commit f8bf9f07b6
)
2024-08-14 17:52:23 +02:00
Karol Herbst
b63aeb37ab
Revert "rusticl/queue: gracefully stop the worker thread"
...
Apparently this code caused issues and the fix was only papering over the
issue, which I now I can't trigger anyway.
This reverts commit 9d458b7fc1
.
Fixes: 9d458b7fc1
("rusticl/queue: gracefully stop the worker thread")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30067 >
(cherry picked from commit 47377b550f
)
2024-08-14 17:48:43 +02:00
Eric Engestrom
732f91128a
.pick_status.json: Update to cc2dbb8ea5
2024-08-14 17:48:33 +02:00
Marek Olšák
dd3862c1b6
nir/opt_algebraic: use fmulz for fpow lowering to fix incorrect rendering
...
The original implementation in all radeon drivers had this behavior.
Fixes: 9bc1fb4c07
- ac/llvm,radeonsi: lower nir_fpow for aco and llvm
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11464
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30069 >
2024-08-14 17:19:22 +02:00
David Rosca
c1a46271bc
radeonsi/vcn: Add decode DPB buffers as CS dependency
...
This is needed to ensure correct synchronization in kernel eg. when it
moves the buffers between VRAM and GTT.
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com >
(cherry picked from commit 0c024bbe64
)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30537 >
2024-08-14 11:13:23 +02:00
Eric Engestrom
41fcf9bfea
.pick_status.json: Update to c90e2bccf7
2024-08-14 11:13:23 +02:00
Georg Lehmann
59dd6bdc3f
spirv: ignore more function param decorations
...
These caused log spam during vk-cts.
Fixes: 9b55dcca54
("spirv: initial parsing of function parameter decorations")
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30391 >
(cherry picked from commit a7c8eab63d
)
2024-07-31 17:26:30 +02:00
Georg Lehmann
9185eaf12d
aco/optimizer: update temp_rc when converting to uniform bool alu
...
Cc: mesa-stable
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30399 >
(cherry picked from commit 6da7bd842c
)
2024-07-31 17:26:30 +02:00
Karol Herbst
b2c4eb582e
rusticl/spirv: protect against 0 length in slice::from_raw_parts
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11584
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30410 >
(cherry picked from commit dc2755a4f8
)
2024-07-31 17:26:30 +02:00
Karol Herbst
68feb29646
rusticl/api: protect against 0 length in slice::from_raw_parts
...
Fixes: 84d16045d0
("rusticl/api: add param to query which contains application provided values")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30410 >
(cherry picked from commit 81f75e2a2d
)
2024-07-31 17:26:30 +02:00
Karol Herbst
fb663417c7
rusticl/program: protect against 0 length in slice::from_raw_parts
...
Fixes: e028baa177
("rusticl/program: implement clCreateProgramWithBinary")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30410 >
(cherry picked from commit ad6fb3406b
)
2024-07-31 17:26:30 +02:00
Karol Herbst
85c000fbd2
rusticl: fix clippy lint having bounds defined in multiple places
...
Fixes: 734352ddfb
("rusticl/program: some boilerplate code for SPIR-V support")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30410 >
(cherry picked from commit 7a8b1dc6e5
)
2024-07-31 17:26:30 +02:00
Karol Herbst
ffe6483ec6
spirv: handle function parameters passed by value
...
Cc: mesa-stable
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29896 >
(cherry picked from commit bad67ee77c
)
2024-07-31 17:26:30 +02:00
Karol Herbst
88a0af007c
spirv: initial parsing of function parameter decorations
...
It doesn't do anything substantial yet, but it ignores enough so internal
shaders won't generate warnings.
I've also added ByVal parsing, because I need this one to actually fix a
correctness issue in a later patch.
Cc: mesa-stable
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29896 >
(cherry picked from commit 9b55dcca54
)
2024-07-31 17:26:30 +02:00
Karol Herbst
f3f8ce0fd4
spirv: generate info for FunctionParameterAttribute
...
Cc: mesa-stable
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29896 >
(cherry picked from commit 90db6c729d
)
[Eric: manually added the function prototype to spirv_info.h since that
was not auto-generated yet in 24.1]
2024-07-31 17:26:30 +02:00
Jesse Natalie
ac5987ec5a
microsoft/clc: Split struct copies before vars_to_ssa in pre-inline optimizations
...
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29896 >
(cherry picked from commit f05b7225a3
)
2024-07-31 17:26:29 +02:00
Eric Engestrom
60b6119ea8
.pick_status.json: Update to 235ce3df9b
2024-07-31 17:26:29 +02:00
José Roberto de Souza
8af39e7e86
anv: Propagate protected information to blorp_batch_isl_copy_usage()
...
This fixes protected tests that uses vkCmdCopyBuffer().
Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Signed-off-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30369 >
(cherry picked from commit 5fdacb56ed
)
2024-07-31 17:26:29 +02:00
José Roberto de Souza
1aeb707571
isl: Fix Xe2 protected mask
...
BSpec 71045 and 57023 still points that protected/encrypted bit is still
bit 0, bit 1 should not be set or undesired MOCS index could be set.
Fixes: 7be8bc2c97
("isl: Add mocs for xe2")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Signed-off-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30369 >
(cherry picked from commit 79f95a3711
)
2024-07-31 17:26:29 +02:00
Lionel Landwerlin
05c0015d65
anv: propagate protected information for blorp operations
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Cc: mesa-stable
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29982 >
(cherry picked from commit d5b0526507
)
2024-07-31 17:26:29 +02:00
Lionel Landwerlin
c28b4470c5
anv: properly flag image/imageviews for ISL protection
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Cc: mesa-stable
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29982 >
(cherry picked from commit 8d9cc6aa23
)
2024-07-31 17:26:29 +02:00
Lionel Landwerlin
8d4ee91743
isl: account for protection in base usage checks
...
Only Cc stable because it's needed for the next patches.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Cc: mesa-stable
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29982 >
(cherry picked from commit 4eab285d4a
)
2024-07-31 17:26:29 +02:00
Eric Engestrom
f3bc003507
ci/baremetal: fix logic for retrying boot when it failed
...
Contrary to what the original commit said, this is actually still used
(see .gitlab-ci/bare-metal/poe-powered.sh:205), and the boot retry logic
has been broken ever since, exacerbating the rpi farm boot problems.
Fixes: 97b2afa16a
("ci/bare-metal: Drop the 2 vs 1 exit code from poe_run.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30340 >
(cherry picked from commit 2bc82b7147
)
2024-07-31 17:26:29 +02:00
GKraats
5b1a063901
i915g: fix max_lod at mipmap-sampling
...
At update_map at i915_state_sampler.c max_lod is no longer set to 1
for npots. This almost totally disabled mipmapping.
Max_lod should still be set to 1, but only if it is still 0,
because no mipmap-levels are present.
According to existing comment at update_map this is needed, to
avoid problems at sampling,
if MIN_FILTER and MAX_FILTER differ.
Cc: mesa-stable
Signed-off-by: GKraats <vd.kraats@hccnet.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28638 >
(cherry picked from commit ad02bfe41d
)
2024-07-31 17:26:29 +02:00
GKraats
120e257e44
i915g: fix mipmap-layout for npots
...
Remove at i945_texture_layout_2d() call of util_next_power_of_two(),
which oversized the npot-blocks for every level to get power of 2
for width and height. Hardware doesnot expect these oversized
npot-blocks, causing mangled mipmapping.
This also is done at i915_texture_layout_2d(), which is
used by older gen3-gpus.
Cc: mesa-stable
Signed-off-by: GKraats <vd.kraats@hccnet.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28638 >
(cherry picked from commit bb95d744ca
)
2024-07-31 17:26:29 +02:00
GKraats
e3aa996d9d
i915g: fix generation of large mipmaps
...
Generation of mipmaps was failing for large heights.
If height > 1365 LEVEL 1 couldnot be generated because of
the max texture size limit (2048). This is solved by using an
offset at the texture-buffer at overflow situations.
The height of the offset must be multiple of 8.
This solves the problem mentioned at MR !27561 (closed).
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10410
Cc: mesa-stable
Signed-off-by: GKraats <vd.kraats@hccnet.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28638 >
(cherry picked from commit a1a301488b
)
2024-07-31 17:26:29 +02:00
Dave Airlie
664041f204
gallivm/sample: fix sampling indirect from vertex shaders
...
When doing indirect sampling, we just fetch one value per lane,
but type.length == 1 caused num_quads to be 0 which caused things
to crash.
Fixes dEQP-GLES31.functional.shaders.opaque_type_indexing.sampler.uniform.vertex.sampler2d
Cc: mesa-stable
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Reviewed-by: Roland Scheidegger <roland.scheidegger@broadcom.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30358 >
(cherry picked from commit 3e01422a16
)
2024-07-31 17:26:29 +02:00
Yiwei Zhang
d4c3867cc2
venus: fix a race condition between gem close and gem handle tracking
...
After using sparse array to manager virtgpu bo, we set gem_handle to 0
to indicate that the bo is invalid. However, the gem handle gets closed
before that and can be reused by another newly created bo, leading to
the tracked gem handle being unexpectedly zero'ed out.
Fixes: 88f481dd74
("venus: make sure gem_handle and vn_renderer_bo are 1:1")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30362 >
(cherry picked from commit f788c87d02
)
2024-07-31 17:26:29 +02:00
Matt Turner
eff81bc9e5
intel/elk: Use REG_CLASS_COUNT
...
Fixes: d44462c08d
("intel/elk: Fork Gfx8- compiler by copying existing code")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30314 >
(cherry picked from commit a3714b55f4
)
2024-07-31 17:26:29 +02:00