iris: Add infrastructure to support non coherent framebuffer fetch

Graphics / Mesa 3D Graphics Library / Mesa - Sagar Ghuge [intel.com] - 20 August 2019 07:50 EDT

Create separate SURFACE_STATE for render target read in order to support non coherent framebuffer fetch on broadwell.

Also we need to resolve framebuffer in order to support CCS_D.

v2: Add outputs_read check (Kenneth Graunke)

v3: 1) Import Curro's comment from get_isl_surf 2) Rename get_isl_surf method 3) Clean up allocation in case of failure

638a157e022 iris: Add infrastructure to support non coherent framebuffer fetch
src/gallium/drivers/iris/iris_resolve.c | 21 ++++
src/gallium/drivers/iris/iris_resource.c | 2 +-
src/gallium/drivers/iris/iris_resource.h | 4 +
src/gallium/drivers/iris/iris_state.c | 158 ++++++++++++++++++++++++++++---
4 files changed, 172 insertions(+), 13 deletions(-)

Upstream: cgit.freedesktop.org


  • Share