da8dd9e1e3
Add AllocateScratchMemory interface to Driver base class and implement it in both KFD and XDNA drivers. This change encapsulates the low-level scratch memory allocation details within driver implementations, making the code more maintainable and the interface cleaner. The main changes include: - Add AllocateScratchMemory virtual method to Driver interface - Implement the interface in KfdDriver with existing allocation logic - Add stub implementation in XdnaDriver - Update GpuAgent to use the new interface instead of direct KMT calls Signed-off-by: Honglei Huang <Honglei1.Huang@amd.com>