• Imre Deak's avatar
    igt_fb: Add support for drawing to non-32bit Y/Yf tiled FBs · 4d40a677
    Imre Deak authored
    When drawing with cairo to Y/Yf tiled FBs we use a temporary linear
    buffer which is mapped to the CPU, but the fast blit needed for this
    only expects 32 bpp FBs. Add support for other bpps too.
    
    This is needed for upcoming patches testing non-32bit bpp formats with
    Y/Yf tiling.
    
    Thanks to Ville for explaining why we need the temporary buffer. (Looks
    like for Y tiling we could do without, but that's a separate topic.)
    
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: Imre Deak's avatarImre Deak <imre.deak@intel.com>
    4d40a677
intel_reg.h 114 KB