From: Kenneth Graunke Date: Thu, 9 Jun 2016 06:36:16 +0000 (-0700) Subject: i965: Set subslice_total on Gen7/7.5 platforms. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cd8f95809c21330e4ccbfbe80ee2eea0f7906ae;p=mesa.git 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" Signed-off-by: Kenneth Graunke Reviewed-by: Francisco Jerez Reviewed-by: Jordan Justen --- diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index aa072fa76ac..869119bb739 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -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) {