From 67b676f0c5d4e44ac748292a8a9c639415bd1d5f Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 11 Nov 2017 11:10:59 -0800 Subject: intel/blorp: Add initial support for indirect clear colors Reviewed-by: Lionel Landwerlin --- src/intel/blorp/blorp.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/intel/blorp/blorp.h') diff --git a/src/intel/blorp/blorp.h b/src/intel/blorp/blorp.h index 31eb1ece0ff..6027076afd0 100644 --- a/src/intel/blorp/blorp.h +++ b/src/intel/blorp/blorp.h @@ -101,6 +101,14 @@ struct blorp_surf enum isl_aux_usage aux_usage; union isl_color_value clear_color; + + /** + * If set (bo != NULL), clear_color is ignored and the actual clear color + * is fetched from this address. On gen7-8, this is all of dword 7 of + * RENDER_SURFACE_STATE and is the responsibility of the caller to ensure + * that it contains a swizzle of RGBA and resource min LOD of 0. + */ + struct blorp_address clear_color_addr; }; void -- cgit v1.2.3