v3dv/format: no need for GetPhysicalDeviceFormatProperties
The common Mesa Vulkan framework already provides a common implementation based on GetPhysicalDeviceFormatProperties2. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16718>
This commit is contained in:

committed by
Marge Bot

parent
0c4a65ef34
commit
11a0ea76a2
@@ -262,14 +262,14 @@ v3dv_buffer_format_supports_features(struct v3dv_device *device,
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
v3dv_GetPhysicalDeviceFormatProperties(VkPhysicalDevice physicalDevice,
|
||||
VkFormat format,
|
||||
VkFormatProperties* pFormatProperties)
|
||||
v3dv_GetPhysicalDeviceFormatProperties2(VkPhysicalDevice physicalDevice,
|
||||
VkFormat format,
|
||||
VkFormatProperties2 *pFormatProperties)
|
||||
{
|
||||
V3DV_FROM_HANDLE(v3dv_physical_device, pdevice, physicalDevice);
|
||||
const struct v3dv_format *v3dv_format = v3dv_X(pdevice, get_format)(format);
|
||||
|
||||
*pFormatProperties = (VkFormatProperties) {
|
||||
pFormatProperties->formatProperties = (VkFormatProperties) {
|
||||
.linearTilingFeatures =
|
||||
image_format_features(pdevice, format, v3dv_format, VK_IMAGE_TILING_LINEAR),
|
||||
.optimalTilingFeatures =
|
||||
@@ -277,15 +277,6 @@ v3dv_GetPhysicalDeviceFormatProperties(VkPhysicalDevice physicalDevice,
|
||||
.bufferFeatures =
|
||||
buffer_format_features(format, v3dv_format),
|
||||
};
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
v3dv_GetPhysicalDeviceFormatProperties2(VkPhysicalDevice physicalDevice,
|
||||
VkFormat format,
|
||||
VkFormatProperties2 *pFormatProperties)
|
||||
{
|
||||
v3dv_GetPhysicalDeviceFormatProperties(physicalDevice, format,
|
||||
&pFormatProperties->formatProperties);
|
||||
|
||||
vk_foreach_struct(ext, pFormatProperties->pNext) {
|
||||
switch ((unsigned)ext->sType) {
|
||||
|
Reference in New Issue
Block a user