crocus: Support building on non-Intel
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 25 Oct 2023 12:38:10 +0000 (08:38 -0400)
committerEric Engestrom <eric@engestrom.ch>
Mon, 30 Oct 2023 15:47:13 +0000 (15:47 +0000)
Ditto.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Cc: mesa-stable
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25882>
(cherry picked from commit 2552ac360d25e6e5f52c0877228540aeb012c858)

.pick_status.json
meson.build
src/gallium/drivers/crocus/crocus_bufmgr.c

index c982fa1..75c0d25 100644 (file)
         "description": "crocus: Support building on non-Intel",
         "nominated": true,
         "nomination_type": 0,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": null,
         "notes": null
index b3f0f73..19ec5c0 100644 (file)
@@ -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
index 6233370..e8b4220 100644 (file)
@@ -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;