#[repr(C)]pub struct drm_amdgpu_memory_info {
pub vram: drm_amdgpu_heap_info,
pub cpu_accessible_vram: drm_amdgpu_heap_info,
pub gtt: drm_amdgpu_heap_info,
}Fields§
§vram: drm_amdgpu_heap_info§cpu_accessible_vram: drm_amdgpu_heap_info§gtt: drm_amdgpu_heap_infoImplementations§
Source§impl drm_amdgpu_memory_info
impl drm_amdgpu_memory_info
Sourcepub fn check_resizable_bar(&self) -> bool
pub fn check_resizable_bar(&self) -> bool
The AMDGPU driver allocates part of VRAM to pre-OS buffer (vbios, frame buffer)
if VRAM is larger than 8GiB
ref: drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
ref: https://gitlab.freedesktop.org/mesa/mesa/blob/main/src/amd/common/ac_gpu_info.c
Trait Implementations§
Source§impl Clone for drm_amdgpu_memory_info
impl Clone for drm_amdgpu_memory_info
Source§fn clone(&self) -> drm_amdgpu_memory_info
fn clone(&self) -> drm_amdgpu_memory_info
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for drm_amdgpu_memory_info
impl Debug for drm_amdgpu_memory_info
impl Copy for drm_amdgpu_memory_info
Auto Trait Implementations§
impl Freeze for drm_amdgpu_memory_info
impl RefUnwindSafe for drm_amdgpu_memory_info
impl Send for drm_amdgpu_memory_info
impl Sync for drm_amdgpu_memory_info
impl Unpin for drm_amdgpu_memory_info
impl UnwindSafe for drm_amdgpu_memory_info
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more