Add mem advise control flags to drm alocation

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
Milczarek, Slawomir
2021-10-11 09:27:26 +00:00
committed by Compute-Runtime-Automation
parent 0859f99d64
commit 5aeae0cf99
11 changed files with 91 additions and 14 deletions

View File

@@ -11,7 +11,7 @@
namespace NEO {
typedef union {
typedef union MemAdviseFlagsTag {
uint8_t memadvise_flags; /* all memadvise_flags */
struct
{
@@ -24,6 +24,10 @@ typedef union {
reserved1 : 1,
reserved0 : 1;
};
MemAdviseFlagsTag() {
memadvise_flags = 0;
cached_memory = 1;
}
} MemAdviseFlags;
} // namespace NEO