From 8d90fe587fdb54517d90e03e3095dea83e2a2f84 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 6 Nov 2020 16:17:16 +0200 Subject: [PATCH] intel/dev: details CPS feature support DG2 introduces per primitive coarse pixel settings (in stages preceding the PS shader) and also a control surface specifying the rate at through the resulting surface. v2: update comment (Caio) Signed-off-by: Lionel Landwerlin Reviewed-by: Caio Oliveira Part-of: --- src/intel/dev/intel_device_info.c | 3 ++- src/intel/dev/intel_device_info.h | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/intel/dev/intel_device_info.c b/src/intel/dev/intel_device_info.c index 7ade65f39c6..7e3827e1eb3 100644 --- a/src/intel/dev/intel_device_info.c +++ b/src/intel/dev/intel_device_info.c @@ -1059,7 +1059,8 @@ static const struct intel_device_info intel_device_info_sg1 = { XEHP_FEATURES(0, 1, 0), \ .num_subslices = dual_subslices(1), \ .has_lsc = true, \ - .apply_hwconfig = true + .apply_hwconfig = true, \ + .has_coarse_pixel_primitive_and_cb = true UNUSED static const struct intel_device_info intel_device_info_dg2_g10 = { DG2_FEATURES, diff --git a/src/intel/dev/intel_device_info.h b/src/intel/dev/intel_device_info.h index ae60ebb4a66..9ba9949b5e6 100644 --- a/src/intel/dev/intel_device_info.h +++ b/src/intel/dev/intel_device_info.h @@ -146,6 +146,12 @@ struct intel_device_info */ bool has_negative_rhw_bug; + /** + * Whether this platform supports fragment shading rate controlled by a + * primitive in geometry shaders and by a control buffer. + */ + bool has_coarse_pixel_primitive_and_cb; + /** * Some versions of Gen hardware don't do centroid interpolation correctly * on unlit pixels, causing incorrect values for derivatives near triangle