intel/common: add directory prefix to intel_gem.h include
authorJonathan Gray <jsg@jsg.id.au>
Tue, 19 Dec 2023 07:27:16 +0000 (18:27 +1100)
committerEric Engestrom <eric@engestrom.ch>
Fri, 22 Dec 2023 15:48:47 +0000 (15:48 +0000)
Otherwise common/intel_gem.h may get included instead of
common/i915/intel_gem.h when building in a different directory.

Fixes: e050a00b9f4 ("intel/common: Move i915 files to i915 folder")
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26784>
(cherry picked from commit fbb9ce014080edd085b2e998c3e6d7fb569ef0b0)

.pick_status.json
src/intel/common/i915/intel_engine.c

index 7b16caa..8a54d9b 100644 (file)
         "description": "intel/common: add directory prefix to intel_gem.h include",
         "nominated": true,
         "nomination_type": 1,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": "e050a00b9f4d057e93f61f79019b5cf8bcd04e49",
         "notes": null
index cc5d9bc..6d99df5 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <stdlib.h>
 
-#include "intel_gem.h"
+#include "i915/intel_gem.h"
 
 static enum intel_engine_class
 i915_engine_class_to_intel(enum drm_i915_gem_engine_class i915)