lavapipe: fix beta build due to changes in AMDX ext

This is probably not correct, but this needs an overhaul,
fixes the -Dvulkan-beta=true build.

Fixes: fcaf0f2590 ("vulkan: update to 302 headers for av1 encode")
Acked-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32520>
This commit is contained in:
Dave Airlie 2024-12-06 12:49:44 +10:00
parent bed66430ab
commit a0918ca13d

View file

@ -1469,7 +1469,8 @@ lvp_GetExecutionGraphPipelineScratchSizeAMDX(VkDevice device, VkPipeline executi
VkExecutionGraphPipelineScratchSizeAMDX *pSizeInfo)
{
VK_FROM_HANDLE(lvp_pipeline, pipeline, executionGraph);
pSizeInfo->size = MAX2(pipeline->exec_graph.scratch_size * 32, 16);
pSizeInfo->minSize = MAX2(pipeline->exec_graph.scratch_size * 32, 16);
pSizeInfo->maxSize = pSizeInfo->minSize;
return VK_SUCCESS;
}