Skip to content
  • Francisco Jerez's avatar
    i965: Factor out virtual GRF allocation to a separate object. · 447879eb
    Francisco Jerez authored
    
    
    Right now virtual GRF book-keeping and allocation is performed in each
    visitor class separately (among other hundred different things),
    leading to duplicated logic in each visitor and preventing layering as
    it forces any code that manipulates i965 IR and needs to allocate
    virtual registers to depend on the specific visitor that happens to be
    used to translate from GLSL IR.
    
    v2: Use realloc()/free() to allocate VGRF book-keeping arrays (Connor).
    
    Reviewed-by: default avatarMatt Turner <mattst88@gmail.com>
    447879eb