fix: restore DRRS constants lost in comment edit
This commit is contained in:
@@ -16,9 +16,21 @@ use crate::kms::ModeInfo;
|
||||
// DRRS_CTL (0x46100): enable (bit 31), idle frames (bits 15-8)
|
||||
// DRRS_STATUS (0x46104): active low RR (bit 31), current low RR (bit 0)
|
||||
//
|
||||
// mark_active() resets the idle timer — called by compositor on frame updates.
|
||||
// mark_active() resets the idle timer — called by compositor on updates.
|
||||
// should_enter_low_rr() checks if idle timeout has elapsed.
|
||||
|
||||
const DRRS_CTL_BASE: usize = 0x46100;
|
||||
const DRRS_CTL_ENABLE: u32 = 1 << 31;
|
||||
const DRRS_CTL_IDLE_FRAMES_SHIFT: u32 = 8;
|
||||
const DRRS_CTL_IDLE_FRAMES_MASK: u32 = 0xFF;
|
||||
|
||||
const DRRS_STATUS_BASE: usize = 0x46104;
|
||||
const DRRS_STATUS_ACTIVE_LOW_RR: u32 = 1 << 31;
|
||||
const DRRS_STATUS_CURRENT_LOW_RR: u32 = 1 << 0;
|
||||
|
||||
const DRRS_IDLE_TIMEOUT_MS: u64 = 1000;
|
||||
const DRRS_IDLE_FRAMES_DEFAULT: u32 = 4;
|
||||
|
||||
pub struct DrrsState {
|
||||
mmio: Arc<MmioRegion>,
|
||||
enabled: bool,
|
||||
|
||||
Reference in New Issue
Block a user