summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-06-08 23:36:16 -0700
committerEmil Velikov <[email protected]>2016-06-15 09:29:10 +0100
commitfdcc6a855b801807fb5a292a0e62a3caf3f64d47 (patch)
treeb41e81bd9a331b7ebe3f5b11fd5a29902425bc40 /src
parentc9477e0a8097bb1dae6e504fb3c6a9905ab90f24 (diff)
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" <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Francisco Jerez <[email protected]> Reviewed-by: Jordan Justen <[email protected]> (cherry picked from commit 9cd8f95809c21330e4ccbfbe80ee2eea0f7906ae)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/intel_screen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index fb06e25b0c1..1330cac8be0 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -1565,8 +1565,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) {