• Show log

    Commit

  • Hash : e9503ae9
    Author : Jamie Madill
    Date : 2018-10-25T17:55:04

    Revert "Add compiler printf attribute to relevant functions"
    
    This reverts commit 27a472c601aa542f48ca5944fb769e2971a0594f.
    
    Reason for revert: Causing failures on 32-bit Linux configs:
    
    https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8931673733828416640/+/steps/compile/0/stdout
    
    ../../third_party/angle/src/libGLESv2/entry_points_egl.cpp:257:11: error: reinterpret_cast from 'EGLNativeWindowType' (aka 'unsigned long') to 'uintptr_t' (aka 'unsigned int') is not allowed
              reinterpret_cast<uintptr_t>(win), reinterpret_cast<uintptr_t>(attrib_list));
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../third_party/angle/src/common/debug.h:230:112: note: expanded from macro 'EVENT'
    #define EVENT(message, ...) gl::ScopedPerfEventHelper scopedPerfEventHelper("%s" message "\n", __FUNCTION__, ##__VA_ARGS__);
                                                                                                                   ^~~~~~~~~~~
    ../../third_party/angle/src/libGLESv2/entry_points_egl.cpp:314:11: error: reinterpret_cast from 'EGLNativePixmapType' (aka 'unsigned long') to 'uintptr_t' (aka 'unsigned int') is not allowed
              reinterpret_cast<uintptr_t>(pixmap), reinterpret_cast<uintptr_t>(attrib_list));
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Original change's description:
    > Add compiler printf attribute to relevant functions
    > 
    > This commit includes fixes to undefined behavior caught by this
    > attribute.  The following changes have been made:
    > 
    > - 0x%0.8p is changed to %016 PRIxPTR. Both 0 and . have undefined behavior with
    >   p.  Additionally, %p already prints 0x with both gcc and clang.  This
    >   results in a small output change:
    > 
    >     void *x = (void *)0x1234;
    >     void *y = (void *)0x1234567890abcdef;
    > 
    >     printf("|%0.8p|\n", x);
    >     printf("|%0.8p|\n", y);
    > 
    >     printf("|%016" PRIxPTR "|\n", reinterpret_cast<uintptr_t>(x));
    >     printf("|%016" PRIxPTR "|\n", reinterpret_cast<uintptr_t>(y));
    > 
    >   prints:
    > 
    >     |0x00001234|
    >     |0x1234567890abcdef|
    >     |0x0000000000001234|
    >     |0x1234567890abcdef|
    > 
    > - %d used for GLintptr, GLsizeiptr, EGLTime and EGLnsecsANDROID is
    >   changed to %llu and the relevant argument is cast to unsigned long
    >   long.  This is due to these types being typedefs to unknown types (on
    >   Linux for example, these are unsigned long, and my guess would be
    >   unsigned long long on Windows where long is 32 bits).
    > - %llu is used for GLuint64, which could be unsigned long (as is on
    >   Linux).  Those arguments are cast to unsigned long long.
    > - %p is used for some EGLNative types, but those types may not be a
    >   pointer.  Those arguments are cast to uintptr_t and printed as above.
    > 
    > Bug: angleproject:2928
    > Change-Id: I63e9e998c72701ce8582f1ebf25d6374be9090e4
    > Reviewed-on: https://chromium-review.googlesource.com/c/1289232
    > Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    > Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
    
    TBR=ynovikov@chromium.org,jmadill@chromium.org,syoussefi@chromium.org
    
    Change-Id: I4f3cea64977bee9f889db6c995371bd2bbc6d81b
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Bug: angleproject:2928
    Reviewed-on: https://chromium-review.googlesource.com/c/1299480
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    Reviewed-by: Jamie Madill <jmadill@chromium.org>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/angle.git
    Git SSH git@git.kmx.io:kc3-lang/angle.git
    Public access ? public
    Description

    A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.

    Homepage

    Github

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags

  • README.md

  • ANGLE - Almost Native Graphics Layer Engine

    The goal of ANGLE is to allow users of multiple operating systems to seamlessly run WebGL and other OpenGL ES content by translating OpenGL ES API calls to one of the hardware-supported APIs available for that platform. ANGLE currently provides translation from OpenGL ES 2.0 and 3.0 to desktop OpenGL, OpenGL ES, Direct3D 9, and Direct3D 11. Support for translation from OpenGL ES to Vulkan is underway, and future plans include compute shader support (ES 3.1) and MacOS support.

    Level of OpenGL ES support via backing renderers

    Direct3D 9 Direct3D 11 Desktop GL GL ES Vulkan
    OpenGL ES 2.0 complete complete complete complete in progress
    OpenGL ES 3.0 complete complete in progress not started
    OpenGL ES 3.1 not started in progress in progress not started

    Platform support via backing renderers

    Direct3D 9 Direct3D 11 Desktop GL GL ES Vulkan
    Windows complete complete complete complete in progress
    Linux complete in progress
    Mac OS X in progress
    Chrome OS complete planned
    Android complete in progress

    ANGLE v1.0.772 was certified compliant by passing the ES 2.0.3 conformance tests in October 2011. ANGLE also provides an implementation of the EGL 1.4 specification.

    ANGLE is used as the default WebGL backend for both Google Chrome and Mozilla Firefox on Windows platforms. Chrome uses ANGLE for all graphics rendering on Windows, including the accelerated Canvas2D implementation and the Native Client sandbox environment.

    Portions of the ANGLE shader compiler are used as a shader validator and translator by WebGL implementations across multiple platforms. It is used on Mac OS X, Linux, and in mobile variants of the browsers. Having one shader validator helps to ensure that a consistent set of GLSL ES shaders are accepted across browsers and platforms. The shader translator can be used to translate shaders to other shading languages, and to optionally apply shader modifications to work around bugs or quirks in the native graphics drivers. The translator targets Desktop GLSL, Direct3D HLSL, and even ESSL for native GLES2 platforms.

    Sources

    ANGLE repository is hosted by Chromium project and can be browsed online or cloned with

    git clone https://chromium.googlesource.com/angle/angle

    Building

    View the Dev setup instructions.

    Contributing