|
@@ -115,6 +115,18 @@ struct SurfaceParams {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ static Tegra::Texture::TextureFormat TextureFormatFromPixelFormat(PixelFormat format) {
|
|
|
|
|
+ // TODO(Subv): Properly implement this
|
|
|
|
|
+ switch (format) {
|
|
|
|
|
+ case PixelFormat::RGBA8:
|
|
|
|
|
+ return Tegra::Texture::TextureFormat::A8R8G8B8;
|
|
|
|
|
+ case PixelFormat::DXT1:
|
|
|
|
|
+ return Tegra::Texture::TextureFormat::DXT1;
|
|
|
|
|
+ default:
|
|
|
|
|
+ UNREACHABLE();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
static bool CheckFormatsBlittable(PixelFormat pixel_format_a, PixelFormat pixel_format_b) {
|
|
static bool CheckFormatsBlittable(PixelFormat pixel_format_a, PixelFormat pixel_format_b) {
|
|
|
SurfaceType a_type = GetFormatType(pixel_format_a);
|
|
SurfaceType a_type = GetFormatType(pixel_format_a);
|
|
|
SurfaceType b_type = GetFormatType(pixel_format_b);
|
|
SurfaceType b_type = GetFormatType(pixel_format_b);
|