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
  • d3d
  • TextureD3D.cpp
Find file
BlameHistoryPermalink
  • Geoff Lang's avatar
    Fall back to CPU copies for srgb textures in copy_texture_CHROMIUM. · 88318b44
    Geoff Lang authored Jul 05, 2017
    The copied data is not supposed to have sRGB conversions applied to it
    when written to the destination texture but an sRGB SRV is used by Blit11.
    Instead of creating multiple sRGB and non-sRGB SRVs for textures, simply
    fall back to the CPU copy path for this format for now.
    
    Clip color channels that should not exist in the destination texture
    formats in Image11::CopyImage.  This works around issues with texture
    formats with emulated channels.
    
    TEST=conformance2/textures/image_bitmap_from_canvas/tex-2d-srgb8-rgb-unsigned_byte
    TEST=conformance2/textures/image_bitmap_from_canvas/tex-2d-srgb8_alpha8-rgba-unsigned_byte
    
    BUG=angleproject:1932
    
    Change-Id: Ieeda3569f80d016fda781e7eb498acd3b97568d0
    Reviewed-on: https://chromium-review.googlesource.com/559857Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Commit-Queue: Geoff Lang <geofflang@chromium.org>
    88318b44
TextureD3D.cpp 132 KB
EditWeb IDE
×

Replace TextureD3D.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.