• Show log

    Commit

  • Hash : 11951f2f
    Author : Charlie Lao
    Date : 2023-01-31T09:56:16

    Vulkan: Add FixedQueue class for CommandProcessor::mTask
    
    This CL adds FixedQueue class. It uses std::array for the storage.  It
    supports concurrent push and pop from two different threads. If producer
    want to push from two different threads, then proper mutex must be used
    to ensure the access is serialized. Similarly if consumers want to pop
    from two different threads, a mutex must be used to ensure serialized
    access.  Caller must ensure queue is not empty before pop and not full
    before push.
    
    This CL switches CommandProcessor::mTasks to FixedQueue and moved
    mSubmissionMutex to protect the serialized submission (i.e, pop from
    queue). mWorkerMutex is still used to protect push operation. With this
    change, we now supports continued enqueue to mTask of CommandProcessor
    while other context is doing
    CommandProcessor::waitForResourceUseToBeSubmitted().
    
    Bug: b/267348918
    Change-Id: I6c5fe288436daa7e0f3bcbbcd16c5d2e5e27f2e9
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4210653
    Commit-Queue: Charlie Lao <cclao@google.com>
    Reviewed-by: Amirali Abdolrashidi <abdolrashidi@google.com>
    Reviewed-by: Shahbaz Youssefi <syoussefi@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
    kc3_lang_org thodg_w www_kmx_io thodg_l thodg thodg_m
    Tags