diff --git a/src/intel/common/intel_engine_i915.c b/src/intel/common/i915/intel_engine.c similarity index 99% rename from src/intel/common/intel_engine_i915.c rename to src/intel/common/i915/intel_engine.c index bf4735b9070..2c5a423bfa7 100644 --- a/src/intel/common/intel_engine_i915.c +++ b/src/intel/common/i915/intel_engine.c @@ -21,7 +21,7 @@ * IN THE SOFTWARE. */ -#include "intel_engine_i915.h" +#include "i915/intel_engine.h" #include diff --git a/src/intel/common/intel_engine_i915.h b/src/intel/common/i915/intel_engine.h similarity index 97% rename from src/intel/common/intel_engine_i915.h rename to src/intel/common/i915/intel_engine.h index e23665b1da3..6887c9fa52f 100644 --- a/src/intel/common/intel_engine_i915.h +++ b/src/intel/common/i915/intel_engine.h @@ -23,7 +23,7 @@ #pragma once -#include "intel_engine.h" +#include "common/intel_engine.h" #include "drm-uapi/i915_drm.h" diff --git a/src/intel/common/intel_gem_i915.c b/src/intel/common/i915/intel_gem.c similarity index 98% rename from src/intel/common/intel_gem_i915.c rename to src/intel/common/i915/intel_gem.c index 611fd0fd523..72ccbed8949 100644 --- a/src/intel/common/intel_gem_i915.c +++ b/src/intel/common/i915/intel_gem.c @@ -21,10 +21,10 @@ * IN THE SOFTWARE. */ -#include "intel_gem_i915.h" +#include "i915/intel_gem.h" -#include "intel_gem.h" -#include "intel_engine_i915.h" +#include "common/intel_gem.h" +#include "i915/intel_engine.h" #include "drm-uapi/i915_drm.h" diff --git a/src/intel/common/intel_gem_i915.h b/src/intel/common/i915/intel_gem.h similarity index 65% rename from src/intel/common/intel_gem_i915.h rename to src/intel/common/i915/intel_gem.h index cb97b5edf37..34176b3294c 100644 --- a/src/intel/common/intel_gem_i915.h +++ b/src/intel/common/i915/intel_gem.h @@ -26,31 +26,7 @@ #include #include -/* - * Copyright © 2022 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - */ - -#include "intel_gem_i915.h" -#include "intel_gem.h" +#include "common/intel_gem.h" #include "drm-uapi/i915_drm.h" diff --git a/src/intel/common/intel_engine.c b/src/intel/common/intel_engine.c index da15c0ca5d6..a460e119112 100644 --- a/src/intel/common/intel_engine.c +++ b/src/intel/common/intel_engine.c @@ -26,7 +26,7 @@ #include "util/macros.h" #include "intel_engine.h" -#include "intel_engine_i915.h" +#include "i915/intel_engine.h" struct intel_query_engine_info * intel_engine_get_info(int fd, enum intel_kmd_type type) diff --git a/src/intel/common/intel_gem.c b/src/intel/common/intel_gem.c index 36f95864d3d..c79bb42d563 100644 --- a/src/intel/common/intel_gem.c +++ b/src/intel/common/intel_gem.c @@ -23,8 +23,8 @@ #include "intel_gem.h" #include "drm-uapi/i915_drm.h" -#include "intel_engine_i915.h" -#include "intel_gem_i915.h" +#include "i915/intel_engine.h" +#include "i915/intel_gem.h" bool intel_gem_supports_syncobj_wait(int fd) diff --git a/src/intel/common/meson.build b/src/intel/common/meson.build index 07947636770..c993c9892d7 100644 --- a/src/intel/common/meson.build +++ b/src/intel/common/meson.build @@ -19,6 +19,10 @@ # SOFTWARE. files_libintel_common = files( + 'i915/intel_engine.c', + 'i915/intel_engine.h', + 'i915/intel_gem.c', + 'i915/intel_gem.h', 'intel_aux_map.c', 'intel_aux_map.h', 'intel_buffer_alloc.h', @@ -26,12 +30,8 @@ files_libintel_common = files( 'intel_decoder.h', 'intel_disasm.c', 'intel_disasm.h', - 'intel_engine_i915.c', - 'intel_engine_i915.h', 'intel_engine.c', 'intel_engine.h', - 'intel_gem_i915.c', - 'intel_gem_i915.h', 'intel_gem.c', 'intel_gem.h', 'intel_genX_state.h',