From fbf452ab0e6b4a82ba749ccfdb3f5c89d48b4aee Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 5 Apr 2019 23:59:54 -0400 Subject: video_core/texures/texture: Remove unnecessary includes Nothing in this header relies on common_funcs or the memory manager. This gets rid of reliance on indirect inclusions in the OpenGL caches. --- src/video_core/textures/texture.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/video_core/textures') diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h index 93ecc6e31..bea0d5bc2 100644 --- a/src/video_core/textures/texture.h +++ b/src/video_core/textures/texture.h @@ -7,9 +7,7 @@ #include #include "common/assert.h" #include "common/bit_field.h" -#include "common/common_funcs.h" #include "common/common_types.h" -#include "video_core/memory_manager.h" namespace Tegra::Texture { -- cgit v1.2.3 From 89c106e31b28b8d2c4e874878f2795f340c9a532 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 6 Apr 2019 00:14:34 -0400 Subject: video_core/textures/convert: Replace include with a forward declaration Avoids dragging in a direct dependency in a header. --- src/video_core/textures/convert.cpp | 1 + src/video_core/textures/convert.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/video_core/textures') diff --git a/src/video_core/textures/convert.cpp b/src/video_core/textures/convert.cpp index 5e439f036..82050bd51 100644 --- a/src/video_core/textures/convert.cpp +++ b/src/video_core/textures/convert.cpp @@ -10,6 +10,7 @@ #include "common/assert.h" #include "common/common_types.h" #include "common/logging/log.h" +#include "video_core/surface.h" #include "video_core/textures/astc.h" #include "video_core/textures/convert.h" diff --git a/src/video_core/textures/convert.h b/src/video_core/textures/convert.h index 07cd8b5da..12542e71c 100644 --- a/src/video_core/textures/convert.h +++ b/src/video_core/textures/convert.h @@ -5,7 +5,10 @@ #pragma once #include "common/common_types.h" -#include "video_core/surface.h" + +namespace VideoCore::Surface { +enum class PixelFormat; +} namespace Tegra::Texture { -- cgit v1.2.3