nak: Add more MemEvictionPriorities
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33427>
This commit is contained in:
committed by
Marge Bot
parent
0d19468924
commit
3c843b6933
@@ -2403,6 +2403,8 @@ pub enum MemEvictionPriority {
|
||||
Normal,
|
||||
Last,
|
||||
LastUse,
|
||||
Unchanged,
|
||||
NoAllocate,
|
||||
}
|
||||
|
||||
impl fmt::Display for MemEvictionPriority {
|
||||
@@ -2412,6 +2414,8 @@ impl fmt::Display for MemEvictionPriority {
|
||||
MemEvictionPriority::Normal => Ok(()),
|
||||
MemEvictionPriority::Last => write!(f, ".el"),
|
||||
MemEvictionPriority::LastUse => write!(f, ".lu"),
|
||||
MemEvictionPriority::Unchanged => write!(f, ".eu"),
|
||||
MemEvictionPriority::NoAllocate => write!(f, ".na"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2617,12 +2617,14 @@ impl SM70Encoder<'_> {
|
||||
|
||||
fn set_eviction_priority(&mut self, pri: &MemEvictionPriority) {
|
||||
self.set_field(
|
||||
84..86,
|
||||
84..87,
|
||||
match pri {
|
||||
MemEvictionPriority::First => 0_u8,
|
||||
MemEvictionPriority::Normal => 1_u8,
|
||||
MemEvictionPriority::Last => 2_u8,
|
||||
MemEvictionPriority::LastUse => 3_u8,
|
||||
MemEvictionPriority::Unchanged => 4_u8,
|
||||
MemEvictionPriority::NoAllocate => 5_u8,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user