Mesa (main): intel/dev: details CPS feature support
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Feb 2 17:39:54 UTC 2022
Module: Mesa
Branch: main
Commit: 8d90fe587fdb54517d90e03e3095dea83e2a2f84
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d90fe587fdb54517d90e03e3095dea83e2a2f84
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Fri Nov 6 16:17:16 2020 +0200
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 <lionel.g.landwerlin at intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13739>
---
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
More information about the mesa-commit
mailing list