summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_screen.h
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2016-02-08 11:52:17 -0800
committerBen Widawsky <benjamin.widawsky@intel.com>2016-03-11 11:17:28 -0800
commit38eb6068847708f054b2d2e93f569061b5245852 (patch)
treed0e91947f55e4ca16a45cee2245f8e9a3d23156a /src/mesa/drivers/dri/i965/intel_screen.h
parent9908b13af61f0cfaae4b750dfc90230314c53b7b (diff)
downloadexternal_mesa3d-38eb6068847708f054b2d2e93f569061b5245852.zip
external_mesa3d-38eb6068847708f054b2d2e93f569061b5245852.tar.gz
external_mesa3d-38eb6068847708f054b2d2e93f569061b5245852.tar.bz2
i965: Query and store GPU properties from kernel
Certain products are not uniquely identifiable based on device id alone. The kernel exports an interface to help deal with this. This patch merely introduces the consumer of the interface and makes sure nothing breaks. It is also possible to use these values for programming GPGPU mode, and I plan to do that as well. The interface was introduced in libdrm 2.4.60, which is already required, so it should all be fine. v2: Some minor changes recommended by Matt Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_screen.h')
-rw-r--r--src/mesa/drivers/dri/i965/intel_screen.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.h b/src/mesa/drivers/dri/i965/intel_screen.h
index 3a5f22c..01d45d0 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.h
+++ b/src/mesa/drivers/dri/i965/intel_screen.h
@@ -81,7 +81,17 @@ struct intel_screen
* I915_PARAM_CMD_PARSER_VERSION parameter
*/
int cmd_parser_version;
- };
+
+ /**
+ * Number of subslices reported by the I915_PARAM_SUBSLICE_TOTAL parameter
+ */
+ int subslice_total;
+
+ /**
+ * Number of EUs reported by the I915_PARAM_EU_TOTAL parameter
+ */
+ int eu_total;
+};
extern void intelDestroyContext(__DRIcontext * driContextPriv);