nvk: properly align slm size

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Karol Herbst
2022-09-09 18:46:58 +02:00
committed by Marge Bot
parent cb54c32fee
commit a39d22f246
+5
View File
@@ -81,6 +81,11 @@ nvk_slm_area_ensure(struct nvk_device *dev,
uint64_t size = bytes_per_mp * dev->pdev->dev->mp_count;
/* The hardware seems to require this alignment for
* NV9097_SET_SHADER_LOCAL_MEMORY_D_SIZE_LOWER.
*/
size = ALIGN(size, 0x20000);
struct nouveau_ws_bo *bo =
nouveau_ws_bo_new(dev->pdev->dev, size, 0, NOUVEAU_WS_BO_LOCAL);
if (bo == NULL)