diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2015-01-18 23:26:05 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2015-01-18 23:35:51 +0100 |
commit | 55104042072ce202b49d4eab456de00f55d3f2b5 (patch) | |
tree | 5c164d2b1ef34b5d5f0b95f4a50ec528bcf5a34e /lib/fosphor | |
parent | 95f603cc513c9fb33cfcf4558d0befe4d24f8448 (diff) |
fosphor/cl: Balance the score of local_mem size a bit more
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'lib/fosphor')
-rw-r--r-- | lib/fosphor/cl.c | 2 |
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; } |