mirror of
https://gitlab.freedesktop.org/mesa/vulkan-wsi-layer.git
synced 2025-12-27 13:50:11 +01:00
Fix the error caused in release builds due to unused variables
The variables 'physicalDevice' and 'planeIndex' are unused in release builds in the following APIs causing build error: GetDisplayPlaneCapabilitiesKHR GetDisplayPlaneSupportedDisplaysKHR GetPhysicalDeviceDisplayPlanePropertiesKHR GetPhysicalDeviceDisplayPropertiesKHR This issue is fixed in this change. Signed-off-by: Ginu Jacob <ginu.jacob@arm.com> Change-Id: Id34f5162204249b5c1604a1eb4ba198b60393bee
This commit is contained in:
parent
17ec9b5411
commit
a8f7bb40e1
1 changed files with 7 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Arm Limited.
|
||||
* Copyright (c) 2024-2025 Arm Limited.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
|
|
@ -307,6 +307,8 @@ VWL_VKAPI_CALL(VkResult)
|
|||
GetDisplayPlaneCapabilitiesKHR(VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex,
|
||||
VkDisplayPlaneCapabilitiesKHR *pCapabilities)
|
||||
{
|
||||
UNUSED(physicalDevice);
|
||||
UNUSED(planeIndex);
|
||||
assert(physicalDevice != VK_NULL_HANDLE);
|
||||
assert(mode != VK_NULL_HANDLE);
|
||||
assert(pCapabilities != nullptr);
|
||||
|
|
@ -355,6 +357,8 @@ VWL_VKAPI_CALL(VkResult)
|
|||
GetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t *pDisplayCount,
|
||||
VkDisplayKHR *pDisplays)
|
||||
{
|
||||
UNUSED(physicalDevice);
|
||||
UNUSED(planeIndex);
|
||||
assert(physicalDevice != VK_NULL_HANDLE);
|
||||
assert(pDisplayCount != nullptr);
|
||||
|
||||
|
|
@ -392,6 +396,7 @@ VWL_VKAPI_CALL(VkResult)
|
|||
GetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice physicalDevice, uint32_t *pPropertyCount,
|
||||
VkDisplayPlanePropertiesKHR *pProperties)
|
||||
{
|
||||
UNUSED(physicalDevice);
|
||||
assert(physicalDevice != VK_NULL_HANDLE);
|
||||
assert(pPropertyCount != nullptr);
|
||||
|
||||
|
|
@ -432,6 +437,7 @@ VWL_VKAPI_CALL(VkResult)
|
|||
GetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice physicalDevice, uint32_t *pPropertyCount,
|
||||
VkDisplayPropertiesKHR *pProperties)
|
||||
{
|
||||
UNUSED(physicalDevice);
|
||||
assert(physicalDevice != VK_NULL_HANDLE);
|
||||
assert(pPropertyCount != nullptr);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue