summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBen Widawsky <[email protected]>2016-04-07 10:53:14 -0700
committerBen Widawsky <[email protected]>2016-04-08 11:52:29 -0700
commite5295b5fb442d433b22e3b6f4b5c28a0e48677cd (patch)
tree6548cc2c360ba351410a01958cb494f0d7dd6e34 /src/mesa
parentcc01b63d730d151097dd6c3d2030a4731e09a393 (diff)
i965: Check eu/subslices are > 0
Now that the check is restricted to gen8+, we should always get back a non-zero positive value for the EU and subslice counts. Signed-off-by: Ben Widawsky <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index b596017c654..03e6852a7f1 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -1101,7 +1101,7 @@ intel_detect_sseu(struct intel_screen *intelScreen)
* and we have to use conservative numbers for GPGPU on many platforms, but
* otherwise, things will just work.
*/
- if (intelScreen->subslice_total == -1 || intelScreen->eu_total == -1)
+ if (intelScreen->subslice_total < 1 || intelScreen->eu_total < 1)
_mesa_warning(NULL,
"Kernel 4.1 required to properly query GPU properties.\n");