Module: Mesa
Branch: main
Commit: 2552ac360d25e6e5f52c0877228540aeb012c858
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2552ac360d25e6e5f52c0877228540aeb012c858

Author: Alyssa Rosenzweig <[email protected]>
Date:   Wed Oct 25 08:38:10 2023 -0400

crocus: Support building on non-Intel

Ditto.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Cc: mesa-stable
Reviewed-by: Eric Engestrom <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25882>

---

 meson.build                                | 4 ----
 src/gallium/drivers/crocus/crocus_bufmgr.c | 2 ++
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/meson.build b/meson.build
index 40965c69a20..755a9431b0c 100644
--- a/meson.build
+++ b/meson.build
@@ -1468,10 +1468,6 @@ if get_option('intel-xe-kmd').enabled()
 endif
 
 
-if with_gallium_crocus and host_machine.cpu_family().startswith('x86') == false
-  error('Intel "crocus" Gallium driver requires x86 or x86_64 CPU family')
-endif
-
 if with_gallium_i915 and host_machine.cpu_family().startswith('x86') == false
   error('Intel "i915" Gallium driver requires x86 or x86_64 CPU family')
 endif
diff --git a/src/gallium/drivers/crocus/crocus_bufmgr.c 
b/src/gallium/drivers/crocus/crocus_bufmgr.c
index 62333703996..e8b4220be3f 100644
--- a/src/gallium/drivers/crocus/crocus_bufmgr.c
+++ b/src/gallium/drivers/crocus/crocus_bufmgr.c
@@ -895,7 +895,9 @@ crocus_bo_map_cpu(struct util_debug_callback *dbg,
        * LLC entirely requiring us to keep dirty pixels for the scanout
        * out of any cache.)
        */
+#ifdef SUPPORT_INTEL_INTEGRATED_GPUS
       intel_invalidate_range(bo->map_cpu, bo->size);
+#endif
    }
 
    return bo->map_cpu;

Reply via email to