rocr: add specific flag for blit kernel object

so that aql-to-pm4 conversion could verify the validity of the kernel
object.

Signed-off-by: Flora Cui <flora.cui@amd.com>
This commit is contained in:
Flora Cui
2025-07-16 10:48:02 +08:00
committed by Cui, Flora
parent 6c87f5b5ce
commit a765dd7e94
4 changed files with 10 additions and 2 deletions
@@ -241,6 +241,9 @@ KfdDriver::AllocateMemory(const core::MemoryRegion &mem_region,
? 1
: kmt_alloc_flags.ui32.Uncached);
kmt_alloc_flags.ui32.ExecuteBlit =
!!(alloc_flags & core::MemoryRegion::AllocateExecutableBlitKernelObject);
if (m_region.IsLocalMemory()) {
// Allocate physically contiguous memory. AllocateKfdMemory function call
// will fail if this flag is not supported in KFD.