gpu: reserved 32k for GPU's memory to avoid access error memory.

This commit is contained in:
杜坤明
2011-08-18 17:39:35 +08:00
parent dd97434493
commit 64436f2da0

View File

@@ -831,7 +831,8 @@ gckVIDMEM_AllocateLinear(
gcmkONERROR(gcvSTATUS_OUT_OF_MEMORY);
}
if (Bytes > Memory->freeBytes)
// dkm: <20><>Ԥ<EFBFBD><D4A4>32K<32>Ŀռ<D5BC><E4A3AC><EFBFBD><EFBFBD>GPU<50><55><EFBFBD>з<EFBFBD><D0B7>ʷǷ<CAB7><C7B7><EFBFBD>ַ<EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>
if (Bytes + (32 << 10) > Memory->freeBytes)
{
/* Not enough memory. */
gcmkONERROR(gcvSTATUS_OUT_OF_MEMORY);