• Ben Widawsky's avatar
    drm/i915: make PDE|PTE platform specific · 6670a5a5
    Ben Widawsky authored
    Nothing outside of i915_gem_gtt.c and more specifically, the relevant
    gen specific init function should need to know about number of PDEs, or
    PTEs per PD. Exposing this will only lead to circumventing using the
    upcoming VM abstraction.
    
    To accomplish this, move the defines into the .c file, rename the PDE
    define to be GEN6, and make the PTE count less of a magic number.
    
    The remaining code in the global gtt setup is a bit messy, but an
    upcoming patch will clean that one up.
    
    v2: Don't hardcode number of PDEs (Daniel + Jesse)
    Reworded commit message to reflect change.
    Reviewed-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    6670a5a5
i915_drv.h 63.9 KB