aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fosphor/cl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fosphor/cl.c')
-rw-r--r--lib/fosphor/cl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fosphor/cl.c b/lib/fosphor/cl.c
index 7658d39..39bbf26 100644
--- a/lib/fosphor/cl.c
+++ b/lib/fosphor/cl.c
@@ -253,7 +253,7 @@ cl_device_score(cl_device_id dev_id, struct fosphor_cl_features *feat)
}
/* Bigger local mem */
- score += (feat->local_mem >> 10);
+ score += (feat->local_mem < (1<<20)) ? (feat->local_mem >> 11) : (1 << 9);
return score;
}