summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index 3293905d6..0b2e3ffef 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -115,6 +115,18 @@ struct SurfaceParams {
115 } 115 }
116 } 116 }
117 117
118 static Tegra::Texture::TextureFormat TextureFormatFromPixelFormat(PixelFormat format) {
119 // TODO(Subv): Properly implement this
120 switch (format) {
121 case PixelFormat::RGBA8:
122 return Tegra::Texture::TextureFormat::A8R8G8B8;
123 case PixelFormat::DXT1:
124 return Tegra::Texture::TextureFormat::DXT1;
125 default:
126 UNREACHABLE();
127 }
128 }
129
118 static bool CheckFormatsBlittable(PixelFormat pixel_format_a, PixelFormat pixel_format_b) { 130 static bool CheckFormatsBlittable(PixelFormat pixel_format_a, PixelFormat pixel_format_b) {
119 SurfaceType a_type = GetFormatType(pixel_format_a); 131 SurfaceType a_type = GetFormatType(pixel_format_a);
120 SurfaceType b_type = GetFormatType(pixel_format_b); 132 SurfaceType b_type = GetFormatType(pixel_format_b);