[Mesa-dev] [PATCH 0/8] i965 Sampling from HiZ buffers

Lionel Landwerlin lionel.g.landwerlin at intel.com
Thu Nov 3 10:39:35 UTC 2016


Hi all,

Here is an updated version of a patchset to enable sampling from HiZ
in the i965 driver. The initial series was from Jordan and Ben made a
v2 [1].

Ben's version of the series enabled sampling from HiZ from gen8, but
unfortunately I don't think we can actually do this, mostly because
we're missing the fast clear color entries in RENDER_SURFACE_STATE
(they appeared on gen9).

This brings a small performance improvment for applications that use
the depth information for light/shadow computation (see patch 8).

Cheers,

[1] : https://cgit.freedesktop.org/~bwidawsk/mesa/log/?h=aux-buf-v2

Ben Widawsky (5):
  i965/miptree: Directly gtt map the mcs buffer
  i965: Drop the aux mt when not used
  i965: Store mcs buffer size
  i965/miptree: Create a hiz mcs type
  i965/gen9: Add HiZ auxiliary buffer support

Jordan Justen (3):
  i965: Wrap MCS miptree in intel_miptree_aux_buffer
  i965: Add function to indicate when sampling with hiz is supported
  i965/gen9: Allow sampling with hiz when supported

 src/mesa/drivers/dri/i965/brw_blorp.c            |  14 +-
 src/mesa/drivers/dri/i965/brw_context.c          |   5 +-
 src/mesa/drivers/dri/i965/brw_wm_surface_state.c |  21 +-
 src/mesa/drivers/dri/i965/gen7_misc_state.c      |   6 +-
 src/mesa/drivers/dri/i965/gen8_depth_state.c     |   6 +-
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c    | 232 ++++++++++++++++-------
 src/mesa/drivers/dri/i965/intel_mipmap_tree.h    |  47 ++++-
 7 files changed, 230 insertions(+), 101 deletions(-)

--
2.10.2


More information about the mesa-dev mailing list