Edit

kc3-lang/angle/src/libANGLE/renderer/angle_format_data.json

Branch :

  • Show log

    Commit

  • Author : Geoff Lang
    Date : 2017-05-15 15:32:02
    Hash : 451b2b7f
    Message : Correctly generate mipmaps for sRGB textures. sRGB textures need to linearize their data before averaging, this worked correctly on the GPU mipmap generation functions but not the CPU ones. BUG=angleproject:2019 TEST=conformance/extensions/ext-sRGB Change-Id: I554dac89b12acf5ebf5b7cab6f6faf0bce5168a6 Reviewed-on: https://chromium-review.googlesource.com/506241 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>

  • src/libANGLE/renderer/angle_format_data.json
  • {
      "B5G6R5_UNORM": {
        "fboImplementationInternalFormat": "GL_RGB565"
      },
      "B5G5R5A1_UNORM": {
        "fboImplementationInternalFormat": "GL_RGB5_A1",
        "channelStruct": "A1R5G5B5"
      },
      "B8G8R8X8_UNORM": {
        "glInternalFormat": "GL_BGRA8_EXT",
        "channelStruct": "B8G8R8X8"
      },
      "R9G9B9E5_SHAREDEXP": {
        "componentType":  "float",
        "channelStruct":  "R9G9B9E5"
      },
      "B4G4R4A4_UNORM": {
        "fboImplementationInternalFormat": "GL_RGBA4",
        "channelStruct":  "A4R4G4B4"
      },
      "R8G8B8A8_UNORM_SRGB": {
        "channelStruct":  "R8G8B8A8SRGB"
      }
    }