1. 02 Sep, 2022 3 commits
    • Kenneth Graunke's avatar
      isl: Set ISL_AUX_USAGE_CCS_E on DG2 modifiers, not GFX12_CCS_E · f3d661ec
      Kenneth Graunke authored
      XeHP (DG2) doesn't have the auto-fast-clear optimization enabled by
      default and none of our drivers enable it.
      f3d661ec
    • Kenneth Graunke's avatar
      iris: Switch to ISL_AUX_USAGE_CCS_E on XeHP · 18e25aca
      Kenneth Graunke authored
      Tigerlake has an automatic fast clear "optimization" where ordinary
      render target writes with a pixel color that matches the clear color
      may generate new CCS blocks containing "fast clear" state.  This can
      be a problem when using texture views which reinterpret the format,
      or conducting bit-for-bit copies via blorp_copy().
      
      A chicken bit was introduced to control this optimization on XeHP,
      3DSTATE_3D_MODE::Fast Clear Optimization (FCV) Enable (bit 10).
      The default state is to disable it by default on all production
      steppings, and iris never enables it.
      
      So we should use the ISL_AUX_USAGE_CCS_E aux usage, which is the
      traditional behavior without this auto-clear optimization.
      18e25aca
    • Kenneth Graunke's avatar
      anv: Allow arbitrary clear colors for render targets on XeHP. · d580dd58
      Kenneth Graunke authored
      Tigerlake has an automatic fast clear "optimization" where ordinary
      render target writes with a pixel color that matches the clear color
      may generate new CCS blocks containing "fast clear" state.  This can
      be a problem when using texture views which reinterpret the format,
      or conducting bit-for-bit copies via blorp_copy().
      
      A chicken bit was introduced to control this optimization on XeHP,
      3DSTATE_3D_MODE::Fast Clear Optimization (FCV) Enable (bit 10).
      The default state is to disable it by default on all production
      steppings, and anv never enables it.
      
      So, we don't have to worry about this on XeHP, and can support an
      arbitrary clear color.
      d580dd58
  2. 01 Sep, 2022 37 commits