Use DEVRAM if no more space is available in VRAM
Previous Windows drivers use mainly DEVRAM so in some environments (like RHEV-M 4.0) VRAM is really limited. This patch use DEVRAM as a fallback to avoid getting out of memory conditions too earlier in such environments. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Yuri Benditovich <yuri.benditovich@daynix.com>
This commit is contained in:
parent
0214d5ceda
commit
54a719e14f
@ -4077,6 +4077,8 @@ void *QxlDevice::AllocMem(UINT32 mspace_type, size_t size, BOOL force)
|
|||||||
FlushReleaseRing();
|
FlushReleaseRing();
|
||||||
|
|
||||||
ptr = mspace_malloc(m_MSInfo[mspace_type]._mspace, size);
|
ptr = mspace_malloc(m_MSInfo[mspace_type]._mspace, size);
|
||||||
|
if (!ptr && mspace_type == MSPACE_TYPE_VRAM)
|
||||||
|
ptr = mspace_malloc(m_MSInfo[MSPACE_TYPE_DEVRAM]._mspace, size);
|
||||||
if (ptr) {
|
if (ptr) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user