We'll use this for compute shader thread counts and scratch space
calculations shortly.
Note that subslices are referred to as "half slices" on Ivybridge.
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
intelScreen->hw_has_timestamp = intel_detect_timestamp(intelScreen);
/* GENs prior to 8 do not support EU/Subslice info */
- if (intelScreen->devinfo->gen >= 8)
+ if (intelScreen->devinfo->gen >= 8) {
intel_detect_sseu(intelScreen);
+ } else if (intelScreen->devinfo->gen == 7) {
+ intelScreen->subslice_total = 1 << (intelScreen->devinfo->gt - 1);
+ }
const char *force_msaa = getenv("INTEL_FORCE_MSAA");
if (force_msaa) {