i965: Set subslice_total on Gen7/7.5 platforms.

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>
This commit is contained in:
Kenneth Graunke 2016-06-08 23:36:16 -07:00
parent 87d062a940
commit 9cd8f95809

View File

@ -1567,8 +1567,11 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp)
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) {