mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-15 10:14:56 +08:00
Add mem advise control flags to drm alocation
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0859f99d64
commit
5aeae0cf99
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user