• Show log

    Commit

  • Hash : fe28a429
    Author : Charlie Lao
    Date : 2022-03-30T15:34:49

    Vulkan: Create buffer for vertex array if robust enabled
    
    If robust access is enabled (i.e., chrome), we want to ensure vulkan
    driver never access beyond that OpenGL buffer boundary. But with
    suballocation from BufferPool, we are using the same VkBuffer for all
    suballocations from the same BufferBlock. this combined with the fact
    that there is no size information in the vkCmdBindVertexBuffers, it
    means vulkan driver can not properly ensure vertex access not go beyond
    the subrange. It can only guarantee not access beyond the entire
    VkBuffer size. This CL creates a dedicated vkBuffer object and bind it
    to the suballocation of the vkDeviceMemory so that vulkan driver will
    see the exact range of the subrange instead of entire buffer. Since we
    may allocated more memory than actual requested size and the extra
    paddings are not zero filled , user size is used to create this
    vkBuffer. This is only enabled when robust access is enabled.
    
    This CL also ported webgl conformance test
    out-of-bounds-index-buffers.html and out-of-bounds-array-buffers.html
    to end2end test.
    
    Bug: chromium:1310038
    Change-Id: I3499ae600028149b1039082e5011232b3e4e5e80
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3553940
    Reviewed-by: Yuxin Hu <yuxinhu@google.com>
    Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
    Commit-Queue: Charlie Lao <cclao@google.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
    kc3_lang_org www_kmx_io thodg_w thodg_l thodg thodg_m
    Tags