venus: GetPhysicalDeviceSparseImageFormatProperties to match sparse support
Test: dEQP-VK.api.info.sparse_image_format_properties2.*
Fixes: 1a7632e54b
("venus: add NO_FENCE_FEEDBACK perf option and disable sparse resource")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17476>
This commit is contained in:
parent
1f0d27e45f
commit
20eeb529f7
|
@ -2428,6 +2428,17 @@ vn_GetPhysicalDeviceSparseImageFormatProperties2(
|
|||
struct vn_physical_device *physical_dev =
|
||||
vn_physical_device_from_handle(physicalDevice);
|
||||
|
||||
/* TODO allow sparse resource along with sync feedback
|
||||
*
|
||||
* If VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT is not supported for the given
|
||||
* arguments, pPropertyCount will be set to zero upon return, and no data
|
||||
* will be written to pProperties.
|
||||
*/
|
||||
if (!VN_PERF(NO_FENCE_FEEDBACK)) {
|
||||
*pPropertyCount = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
/* TODO per-device cache */
|
||||
vn_call_vkGetPhysicalDeviceSparseImageFormatProperties2(
|
||||
physical_dev->instance, physicalDevice, pFormatInfo, pPropertyCount,
|
||||
|
|
Loading…
Reference in New Issue