• Show log

    Commit

  • Hash : 8712495d
    Author : Gert Wollny
    Date : 2021-10-05T11:56:32

    Capture/Replay: Don't handle void pointers as const
    
    TL;DR: glReadPixels needs a non-const pointer if a pack buffer
    is bound, so change the code generation to keep TvoidPointer
    non-const and regenerate the entry points.
    
    Long version:
    
    When no pack buffer is bound, then in WriteCppReplayForCall
    param.readBufferSizeBytes is non-zero and the cast of the read
    buffer pointer is using the type passed by the parameter
    (TvoidPionter) to write the typecast by calling ParamTypeToString
    directly, which returns "void *".
    
    If. OTOH, a pack buffer is bound, then param.readBufferSizeBytes
    is zero, and the default WriteParamCaptureReplay is called. This
    autogenerated function forwards the call to WriteParamValueReplay
    by using an explicit type specification, and the autogeneration
    code was translating TvoidPointer to call
       WriteParamValueReplay<ParamType::TvoidConstPointer>
    which would then translate to "const void *" in the parameter type
    cast, and this would lead to a compilation failure, because the
    parameter must be a non-const pointer.
    
    Change the autogeneration code so that TvoidPointer is not forced
    to be a const pointer and regenerate the entry points.
    
    Bug: angleproject:6521
    Change-Id: I673c77f803a284fb7dfc08a2e0918aebdf698194
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3204959
    Reviewed-by: Jamie Madill <jmadill@chromium.org>
    Reviewed-by: Cody Northrop <cnorthrop@google.com>
    Commit-Queue: Gert Wollny <gert.wollny@collabora.com>
    

  • 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