Return trimCallbackHandle from register method instead of storing in Wddm

Change-Id: Iddfb6a926311480e355d52e5bf3e6379ec96f7a9
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2018-10-23 16:17:31 +02:00
committed by sys_ocldev
parent 4aae1a817b
commit bd431edb46
8 changed files with 46 additions and 21 deletions

View File

@@ -81,6 +81,7 @@ class WddmMemoryManager : public MemoryManager {
protected:
void trimResidency(D3DDDI_TRIMRESIDENCYSET_FLAGS flags, uint64_t bytes);
bool trimResidencyToBudget(uint64_t bytes);
VOID *trimCallbackHandle = nullptr;
GraphicsAllocation *createAllocationFromHandle(osHandle handle, bool requireSpecificBitness, bool ntHandle);
static bool validateAllocation(WddmAllocation *alloc);