[gegl] gegl: cpuaccel, fix detection of x86-64 level
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: cpuaccel, fix detection of x86-64 level
- Date: Sat, 22 Jan 2022 00:55:19 +0000 (UTC)
commit a399b02aaa75360ca8ea2a63fc333b7365cd295c
Author: Øyvind Kolås <pippin gimp org>
Date: Sat Jan 22 01:55:11 2022 +0100
gegl: cpuaccel, fix detection of x86-64 level
gegl/gegl-init.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gegl/gegl-init.c b/gegl/gegl-init.c
index 9381d9959..946cdce50 100644
--- a/gegl/gegl-init.c
+++ b/gegl/gegl-init.c
@@ -548,8 +548,10 @@ gegl_post_parse_hook (GOptionContext *context,
#else
GeglCpuAccelFlags cpu_accel = gegl_cpu_accel_get_support ();
int x86_64_version = 0;
- if (cpu_accel & GEGL_CPU_ACCEL_X86_64_V2) x86_64_version = 2;
- if (cpu_accel & GEGL_CPU_ACCEL_X86_64_V3) x86_64_version = 3;
+ if ((cpu_accel & GEGL_CPU_ACCEL_X86_64_V2) == GEGL_CPU_ACCEL_X86_64_V2)
+ x86_64_version = 2;
+ if ((cpu_accel & GEGL_CPU_ACCEL_X86_64_V3) == GEGL_CPU_ACCEL_X86_64_V3)
+ x86_64_version = 3;
_gegl_init_buffer (x86_64_version);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]