Skip to content
  • Rafael Antognolli's avatar
    intel: Use Clear Color struct size. · 94675edc
    Rafael Antognolli authored
    
    
    The size of the clear color struct (expected by the hardware) is 8
    dwords (isl_dev.ss.clear_value_state_size here). But we still need to
    track the size of the clear color, used when memcopying it to/from the
    state buffer. For that we keep isl_dev.ss.clear_value_size.
    
    v4:
     - Add struct to gen11 too (Jason, Jordan)
     - Add field for Converted Clear Color to gen11 (Jason)
     - Add clear_color_state_offset to differentiate from
       clear_value_offset.
     - Fix all the places where clear_value_size was used.
    
    v5 (Jason):
     - Split genxml changes to another commit.
     - Remove unnecessary gen checks.
     - Bring back missing offset increment to init_fast_clear_color().
    
    v6 (Jason):
     - On init_fast_clear_color, change:
       addr.offset += 4 => sdi.Address.offset += i * 4
     - Use GEN_GEN instead of GEN_VERSIONx10.
    
    [jordan.l.justen@intel.com: isl_device_init changes]
    Signed-off-by: default avatarRafael Antognolli <rafael.antognolli@intel.com>
    Signed-off-by: default avatarJordan Justen <jordan.l.justen@intel.com>
    Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
    94675edc