Edit

kc3-lang/angle/scripts/code_generation_hashes/GLenum_value_to_string_map.json

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2019-11-02 17:23:34
    Hash : a576e0d4
    Message : Capture/Replay: Only convert GLES 2 GLenums to string. Previously the enum conversion script would convert all enums in gl.xml including those for desktop GL. When replaying from a CPP file we would sometimes try to use enum values that only are exposed in desktop GL. One example is GL_TEXTURE_MAX_ANISOTROPY/GL_TEXTURE_MAX_ANISOTROPY_EXT. GLES only has the "EXT" version. Desktop uses the core version. This was breaking a replay sample that used the EXT enum. Fix this by a) including the anisotropy extension in registry_xml and b) updating the enum script to only parse GLES 2 entries. In the future we could improve the situation by auto-generating a header that defines exactly the enums we need for ANGLE. Also updates the enum helper to use uppercase enum values. Bug: angleproject:3611 Change-Id: I1e01608bc8af282dc078d5a19ac4eba659c96b57 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1894143 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Tim Van Patten <timvp@google.com>

  • scripts/code_generation_hashes/GLenum_value_to_string_map.json
  • {
      "scripts/gen_gl_enum_utils.py":
        "f25cdc74b57d10a1cbc4194a72e971af",
      "scripts/gl.xml":
        "b470cb06b06cbbe7adb2c8129ec85708",
      "scripts/gl_angle_ext.xml":
        "d6907cd84d95ac0b32a164194eadcf53",
      "scripts/registry_xml.py":
        "c633c0b4490ef4ab5aaebb295510398d",
      "src/libANGLE/gl_enum_utils_autogen.cpp":
        "3178466fb9ef26a3349fe59a76295dc3",
      "src/libANGLE/gl_enum_utils_autogen.h":
        "fb0bb7f506f6082ea3b2c3fa384d2739"
    }