• Nicholas Kazlauskas's avatar
    drm/amdgpu: Add DCC flags for GFX9 amdgpu_bo · ce331f8f
    Nicholas Kazlauskas authored
    [Why]
    Hardware support for Delta Color Compression (DCC) decompression is
    available in DC for GFX9 but there's no way for userspace to enable
    the feature.
    
    Enabling the feature can provide improved GFX performance and
    power savings in many situations.
    
    [How]
    Extend the GFX9 tiling flags to include DCC parameters. These are
    logically grouped together with tiling flags even if they are
    technically distinct.
    
    This trivially maintains backwards compatibility with existing
    users of amdgpu_gem_metadata. No new IOCTls or data structures are
    needed to support DCC.
    
    This patch helps expose DCC attributes to both libdrm and amdgpu_dm.
    Signed-off-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
    Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    ce331f8f
amdgpu_drm.h 29 KB