mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 11:18:11 +02:00
In vkCreateImage() if block comrpessed format and VK_IMAGE_TILING_LINEAR is used, then the app crashes in vega gpu. This is because addrlib does not support BC + linear as from function ValidateSwModeParams(). From Marek Olšák the addrlib behaviour is correct. In pal driver, flags.texture is not set in DetermineSurfaceFlags() function if BC + linear. pal driver does it because it is expected that the BC + linear image is only used as transfer resource. This patch sets RADEON_SURF_NO_TEXTURE flag if usage is not VK_IMAGE_USAGE_SAMPLED_BIT and and VK_IMAGE_USAGE_STORAGE_BIT. flags.texture flag is not set if RADEON_SURF_NO_TEXTURE and this fixes the crash. v1: set NO_TEXTURE if not SAMPLED or STORAGE (Marek Olšák) Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21422> |
||
|---|---|---|
| .. | ||
| addrlib | ||
| ci | ||
| common | ||
| compiler | ||
| drm-shim | ||
| llvm | ||
| registers | ||
| vulkan | ||
| .clang-format | ||
| meson.build | ||