Skip to content
  • Alejandro Piñeiro's avatar
    broadcom: move HW-dependant constants to v3d_device_info · 5eee1014
    Alejandro Piñeiro authored and Marge Bot's avatar Marge Bot committed
    
    
    Right now we have some HW-dependant constants that we are accessing
    using the same mechanism that some hw-dependant functions, through a
    macro (V3DV_X macro).
    
    But this means that each time that we need to get those constant
    values, we need to do a hw version check. Also, right now both the
    macro and the defines with each HW value are duplicated on v3d and
    v3dv. Also that macro is ugly and has a ugly name.
    
    This commit moves those values to the already common v3d_device_info
    structure.
    
    Reviewed-by: default avatarJose Maria Casanova Crespo <jmcasanova@igalia.com>
    Reviewed-by: default avatarIago Toral Quiroga <itoral@igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29535>
    5eee1014