From 9cd8f95809c21330e4ccbfbe80ee2eea0f7906ae Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 8 Jun 2016 23:36:16 -0700 Subject: [PATCH] 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 --- src/mesa/drivers/dri/i965/intel_screen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.30.2