• Florian Tobias Schandinat's avatar
    viafb: hardware acceleration initialization cleanup · 31de59d5
    Florian Tobias Schandinat authored
    The main motivation of this patch was to merge the three initialization
    functions in one and clean it up. However as some changes in other code
    areas where needed to do it right some small other changes were made.
    
    Changes to viafb_par:
    
    io_virt renamed as engine_mmio and moved to shared
    VQ_start renamed as vq_vram_addr and moved to shared
    VQ_end removed as it is easily recalculatable
    
    vq_vram_addr is not strictly needed but keep it to track where we
    allocated video memory.  The memory allocated for the virtual queue was
    shrunk to VQ_SIZE as VQ_SIZE+CURSOR_SIZE looked like a bug to me.  But to
    be honest I don't have the faintest idea what virtual queues are for in
    the graphic hardware and whether the driver needs them in any way.  I only
    know that they aren't directly accessed by the driver and so the only
    potential current use would be as hardware internal buffers.  For now keep
    them to avoid regressions and only remove the double cursor allocation.
    
    Th...
    31de59d5
global.c 1.89 KB