iris: Add infrastructure to support non coherent framebuffer fetch
authorSagar Ghuge <sagar.ghuge@intel.com>
Tue, 16 Jul 2019 18:08:28 +0000 (11:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 20 Aug 2019 07:50:44 +0000 (00:50 -0700)
commit638a157e022e838ee8cae8ba230308fec7f1deca
tree643b225d5e8b8d9c38a4ffc2feaef200461895e6
parent61c0637afb4ff760dd8dbe138266820adc921ce5
iris: Add infrastructure to support non coherent framebuffer fetch

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

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_resolve.c
src/gallium/drivers/iris/iris_resource.c
src/gallium/drivers/iris/iris_resource.h
src/gallium/drivers/iris/iris_state.c