mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 14:28:05 +02:00
radv/video: Match function definitions to declarations
This adds the same function attributes from definitions to declarations and fixes the following compiler errors for 32 bit Windows OS. ../src/amd/vulkan/radv_video.c:270:1: error: conflicting types for 'radv_CreateVideoSessionKHR' src/amd/vulkan/radv_entrypoints.h:3963:34: note: previous declaration of 'radv_CreateVideoSessionKHR' ../src/amd/vulkan/radv_video.c:319:1: error: conflicting types for 'radv_DestroyVideoSessionKHR' src/amd/vulkan/radv_entrypoints.h:3971:30: note: previous declaration of 'radv_DestroyVideoSessionKHR' Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24460>
This commit is contained in:
parent
b13473efe9
commit
2a580bba76
1 changed files with 13 additions and 13 deletions
|
|
@ -266,7 +266,7 @@ calc_ctx_size_h265_main10(struct radv_video_session *vid)
|
|||
return cm_buffer_size + db_left_tile_ctx_size + db_left_tile_pxl_size;
|
||||
}
|
||||
|
||||
VkResult
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
radv_CreateVideoSessionKHR(VkDevice _device, const VkVideoSessionCreateInfoKHR *pCreateInfo,
|
||||
const VkAllocationCallbacks *pAllocator, VkVideoSessionKHR *pVideoSession)
|
||||
{
|
||||
|
|
@ -315,7 +315,7 @@ radv_CreateVideoSessionKHR(VkDevice _device, const VkVideoSessionCreateInfoKHR *
|
|||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
void
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
radv_DestroyVideoSessionKHR(VkDevice _device, VkVideoSessionKHR _session, const VkAllocationCallbacks *pAllocator)
|
||||
{
|
||||
RADV_FROM_HANDLE(radv_device, device, _device);
|
||||
|
|
@ -327,7 +327,7 @@ radv_DestroyVideoSessionKHR(VkDevice _device, VkVideoSessionKHR _session, const
|
|||
vk_free2(&device->vk.alloc, pAllocator, vid);
|
||||
}
|
||||
|
||||
VkResult
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
radv_CreateVideoSessionParametersKHR(VkDevice _device, const VkVideoSessionParametersCreateInfoKHR *pCreateInfo,
|
||||
const VkAllocationCallbacks *pAllocator,
|
||||
VkVideoSessionParametersKHR *pVideoSessionParameters)
|
||||
|
|
@ -351,7 +351,7 @@ radv_CreateVideoSessionParametersKHR(VkDevice _device, const VkVideoSessionParam
|
|||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
void
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
radv_DestroyVideoSessionParametersKHR(VkDevice _device, VkVideoSessionParametersKHR _params,
|
||||
const VkAllocationCallbacks *pAllocator)
|
||||
{
|
||||
|
|
@ -362,7 +362,7 @@ radv_DestroyVideoSessionParametersKHR(VkDevice _device, VkVideoSessionParameters
|
|||
vk_free2(&device->vk.alloc, pAllocator, params);
|
||||
}
|
||||
|
||||
VkResult
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
radv_GetPhysicalDeviceVideoCapabilitiesKHR(VkPhysicalDevice physicalDevice, const VkVideoProfileInfoKHR *pVideoProfile,
|
||||
VkVideoCapabilitiesKHR *pCapabilities)
|
||||
{
|
||||
|
|
@ -486,7 +486,7 @@ radv_GetPhysicalDeviceVideoCapabilitiesKHR(VkPhysicalDevice physicalDevice, cons
|
|||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
VkResult
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
radv_GetPhysicalDeviceVideoFormatPropertiesKHR(VkPhysicalDevice physicalDevice,
|
||||
const VkPhysicalDeviceVideoFormatInfoKHR *pVideoFormatInfo,
|
||||
uint32_t *pVideoFormatPropertyCount,
|
||||
|
|
@ -541,7 +541,7 @@ radv_GetPhysicalDeviceVideoFormatPropertiesKHR(VkPhysicalDevice physicalDevice,
|
|||
#define RADV_BIND_SESSION_CTX 0
|
||||
#define RADV_BIND_DECODER_CTX 1
|
||||
|
||||
VkResult
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
radv_GetVideoSessionMemoryRequirementsKHR(VkDevice _device, VkVideoSessionKHR videoSession,
|
||||
uint32_t *pMemoryRequirementsCount,
|
||||
VkVideoSessionMemoryRequirementsKHR *pMemoryRequirements)
|
||||
|
|
@ -590,7 +590,7 @@ radv_GetVideoSessionMemoryRequirementsKHR(VkDevice _device, VkVideoSessionKHR vi
|
|||
return vk_outarray_status(&out);
|
||||
}
|
||||
|
||||
VkResult
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
radv_UpdateVideoSessionParametersKHR(VkDevice _device, VkVideoSessionParametersKHR videoSessionParameters,
|
||||
const VkVideoSessionParametersUpdateInfoKHR *pUpdateInfo)
|
||||
{
|
||||
|
|
@ -607,7 +607,7 @@ copy_bind(struct radv_vid_mem *dst, const VkBindVideoSessionMemoryInfoKHR *src)
|
|||
dst->size = src->memorySize;
|
||||
}
|
||||
|
||||
VkResult
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
radv_BindVideoSessionMemoryKHR(VkDevice _device, VkVideoSessionKHR videoSession, uint32_t videoSessionBindMemoryCount,
|
||||
const VkBindVideoSessionMemoryInfoKHR *pBindSessionMemoryInfos)
|
||||
{
|
||||
|
|
@ -1654,7 +1654,7 @@ ruvd_dec_message_create(struct radv_video_session *vid, void *ptr)
|
|||
msg->body.create.height_in_samples = vid->vk.max_coded.height;
|
||||
}
|
||||
|
||||
void
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
radv_CmdBeginVideoCodingKHR(VkCommandBuffer commandBuffer, const VkVideoBeginCodingInfoKHR *pBeginInfo)
|
||||
{
|
||||
RADV_FROM_HANDLE(radv_cmd_buffer, cmd_buffer, commandBuffer);
|
||||
|
|
@ -1719,7 +1719,7 @@ radv_uvd_cmd_reset(struct radv_cmd_buffer *cmd_buffer)
|
|||
radeon_emit(cmd_buffer->cs, 0x81ff);
|
||||
}
|
||||
|
||||
void
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
radv_CmdControlVideoCodingKHR(VkCommandBuffer commandBuffer, const VkVideoCodingControlInfoKHR *pCodingControlInfo)
|
||||
{
|
||||
RADV_FROM_HANDLE(radv_cmd_buffer, cmd_buffer, commandBuffer);
|
||||
|
|
@ -1731,7 +1731,7 @@ radv_CmdControlVideoCodingKHR(VkCommandBuffer commandBuffer, const VkVideoCoding
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
radv_CmdEndVideoCodingKHR(VkCommandBuffer commandBuffer, const VkVideoEndCodingInfoKHR *pEndCodingInfo)
|
||||
{
|
||||
RADV_FROM_HANDLE(radv_cmd_buffer, cmd_buffer, commandBuffer);
|
||||
|
|
@ -1867,7 +1867,7 @@ radv_vcn_decode_video(struct radv_cmd_buffer *cmd_buffer, const VkVideoDecodeInf
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
radv_CmdDecodeVideoKHR(VkCommandBuffer commandBuffer, const VkVideoDecodeInfoKHR *frame_info)
|
||||
{
|
||||
RADV_FROM_HANDLE(radv_cmd_buffer, cmd_buffer, commandBuffer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue