mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 13:40:13 +01:00
nv50: oops, keep VRAM allocations aligned at 64KiB - that's our page size..
This commit is contained in:
parent
89cf2ee2e5
commit
01e8f0ea42
1 changed files with 4 additions and 1 deletions
|
|
@ -593,8 +593,11 @@ nouveau_mem_alloc(struct drm_device *dev, int alignment, uint64_t size,
|
|||
/* Align allocation sizes to 64KiB blocks on G8x. We use a 64KiB
|
||||
* page size in the GPU VM.
|
||||
*/
|
||||
if (flags & NOUVEAU_MEM_FB && dev_priv->card_type >= NV_50)
|
||||
if (flags & NOUVEAU_MEM_FB && dev_priv->card_type >= NV_50) {
|
||||
size = (size + (64 * 1024)) & ~((64 * 1024) - 1);
|
||||
if (alignment < 16)
|
||||
alignment = 16;
|
||||
}
|
||||
|
||||
/*
|
||||
* Warn about 0 sized allocations, but let it go through. It'll return 1 page
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue