Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • libANGLE
  • renderer
  • vulkan
  • TextureVk.cpp
Find file
BlameHistoryPermalink
  • Shahbaz Youssefi's avatar
    Vulkan: Emulate Luminance/Alpha with R8G8B8A8 · 0116a99c
    Shahbaz Youssefi authored Nov 09, 2018
    TextureVk::copySubTextureImpl uses the format's pixelReadFunction and
    pixelWriteFunction and was using the angle format (i.e. the format the
    texture was created with) instead of the texture format (i.e. the actual
    format used by the backend) to read and write pixels.  This was
    specifically to make Luminance/Alpha formats work.  However, this was
    incorrect for any emulated format.
    
    This commit fixes the function to use the texture format.  To avoid
    issues with Luminance/Alpha, this commit patches the pixel read/write
    changes for these formats before using them.
    
    Bug: angleproject:2913
    Change-Id: I8981882b98502d869156a879bb7b5994943ecd8e
    Reviewed-on: https://chromium-review.googlesource.com/c/1330261Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    0116a99c
TextureVk.cpp 47.5 KB
EditWeb IDE
×

Replace TextureVk.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.