Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8261546: Cleanup deadcode in MTLBlitLoops
  • Loading branch information
jayathirthrao committed Feb 11, 2021
1 parent 8884f9d commit 67afe90b36e4b6875fe7adcae4c35baa67fba48e
Showing 1 changed file with 0 additions and 54 deletions.
@@ -93,21 +93,6 @@ static void register() {
MTLSurfaceData.PF_INT_BGR),
new MTLSwToSurfaceBlit(SurfaceType.IntBgrx,
MTLSurfaceData.PF_INT_BGRX),
// TODO: Provide native implementation
// It may not be effective/possible. For example, there is no direct
// support in Metal for SurfaceType.ThreeByteBgr
// new MTLSwToSurfaceBlit(SurfaceType.ThreeByteBgr,
// MTLSurfaceData.PF_3BYTE_BGR),
// new MTLSwToSurfaceBlit(SurfaceType.Ushort565Rgb,
// MTLSurfaceData.PF_USHORT_565_RGB),
// new MTLSwToSurfaceBlit(SurfaceType.Ushort555Rgb,
// MTLSurfaceData.PF_USHORT_555_RGB),
// new MTLSwToSurfaceBlit(SurfaceType.Ushort555Rgbx,
// MTLSurfaceData.PF_USHORT_555_RGBX),
// new MTLSwToSurfaceBlit(SurfaceType.ByteGray,
// MTLSurfaceData.PF_BYTE_GRAY),
// new MTLSwToSurfaceBlit(SurfaceType.UshortGray,
// MTLSurfaceData.PF_USHORT_GRAY),
new MTLGeneralBlit(MTLSurfaceData.MTLSurface,
CompositeType.AnyAlpha,
blitIntArgbPreToSurface),
@@ -129,19 +114,6 @@ static void register() {
MTLSurfaceData.PF_INT_BGR),
new MTLSwToSurfaceScale(SurfaceType.IntBgrx,
MTLSurfaceData.PF_INT_BGRX),
// TODO: Provide native implementation
// new MTLSwToSurfaceScale(SurfaceType.ThreeByteBgr,
// MTLSurfaceData.PF_3BYTE_BGR),
// new MTLSwToSurfaceScale(SurfaceType.Ushort565Rgb,
// MTLSurfaceData.PF_USHORT_565_RGB),
// new MTLSwToSurfaceScale(SurfaceType.Ushort555Rgb,
// MTLSurfaceData.PF_USHORT_555_RGB),
// new MTLSwToSurfaceScale(SurfaceType.Ushort555Rgbx,
// MTLSurfaceData.PF_USHORT_555_RGBX),
// new MTLSwToSurfaceScale(SurfaceType.ByteGray,
// MTLSurfaceData.PF_BYTE_GRAY),
// new MTLSwToSurfaceScale(SurfaceType.UshortGray,
// MTLSurfaceData.PF_USHORT_GRAY),
new MTLSwToSurfaceScale(SurfaceType.IntArgbPre,
MTLSurfaceData.PF_INT_ARGB_PRE),

@@ -153,19 +125,6 @@ static void register() {
MTLSurfaceData.PF_INT_BGR),
new MTLSwToSurfaceTransform(SurfaceType.IntBgrx,
MTLSurfaceData.PF_INT_BGRX),
// TODO: Provide native implementation
// new MTLSwToSurfaceTransform(SurfaceType.ThreeByteBgr,
// MTLSurfaceData.PF_3BYTE_BGR),
// new MTLSwToSurfaceTransform(SurfaceType.Ushort565Rgb,
// MTLSurfaceData.PF_USHORT_565_RGB),
// new MTLSwToSurfaceTransform(SurfaceType.Ushort555Rgb,
// MTLSurfaceData.PF_USHORT_555_RGB),
// new MTLSwToSurfaceTransform(SurfaceType.Ushort555Rgbx,
// MTLSurfaceData.PF_USHORT_555_RGBX),
// new MTLSwToSurfaceTransform(SurfaceType.ByteGray,
// MTLSurfaceData.PF_BYTE_GRAY),
// new MTLSwToSurfaceTransform(SurfaceType.UshortGray,
// MTLSurfaceData.PF_USHORT_GRAY),
transformBlitIntArgbPreToSurface,

new MTLGeneralTransformedBlit(transformBlitIntArgbPreToSurface),
@@ -185,19 +144,6 @@ static void register() {
MTLSurfaceData.PF_INT_BGR),
new MTLSwToTextureBlit(SurfaceType.IntBgrx,
MTLSurfaceData.PF_INT_BGRX),
// TODO: Provide native implementation
// new MTLSwToTextureBlit(SurfaceType.ThreeByteBgr,
// MTLSurfaceData.PF_3BYTE_BGR),
// new MTLSwToTextureBlit(SurfaceType.Ushort565Rgb,
// MTLSurfaceData.PF_USHORT_565_RGB),
// new MTLSwToTextureBlit(SurfaceType.Ushort555Rgb,
// MTLSurfaceData.PF_USHORT_555_RGB),
// new MTLSwToTextureBlit(SurfaceType.Ushort555Rgbx,
// MTLSurfaceData.PF_USHORT_555_RGBX),
// new MTLSwToTextureBlit(SurfaceType.ByteGray,
// MTLSurfaceData.PF_BYTE_GRAY),
// new MTLSwToTextureBlit(SurfaceType.UshortGray,
// MTLSurfaceData.PF_USHORT_GRAY),
new MTLGeneralBlit(MTLSurfaceData.MTLTexture,
CompositeType.SrcNoEa,
blitIntArgbPreToTexture),

0 comments on commit 67afe90

Please sign in to comment.