mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 20:24:30 +08:00
v3dv: Fix assert.
Fix defect reported by Coverity Scan.
Side effect in assertion (ASSERT_SIDE_EFFECT)
assignment_where_comparison_intended: Assignment deviceMask = 1U
has a side effect. This code will work differently in a non-debug
build.
Fixes: 234e1b7356
("v3dv: implement VK_KHR_device_group")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11197>
This commit is contained in:
parent
5bc47c9cc2
commit
c51bdac742
@ -5494,5 +5494,5 @@ VKAPI_ATTR void VKAPI_CALL
|
||||
v3dv_CmdSetDeviceMask(VkCommandBuffer commandBuffer, uint32_t deviceMask)
|
||||
{
|
||||
/* Nothing to do here since we only support a single device */
|
||||
assert(deviceMask = 0x1);
|
||||
assert(deviceMask == 0x1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user