Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • 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
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • src
  • OpenGL
  • libGLES_CM
  • Device.hpp
Find file
BlameHistoryPermalink
  • Nicolas Capens's avatar
    Fix texture upload and internalformat handling. · 3b4a25c5
    Nicolas Capens authored Feb 22, 2018
    We weren't handling several of the format/type/internalformat combos
    from table 3.2 of the OpenGL ES 3.0.5 spec. In particular those where
    the format/type of a glTexSubImage2D() call can be used to update
    images with an internal format not directly corresponding to it. Some
    of these cases were handled using the blitter, but not all GL formats
    have a SwiftShader equivalent. Also, the blitter is slower than
    specialized C++ pixel transfer code, and the blitter's fallback path is
    even slower.
    
    This patch provides specialized pixel rectangle transfer code for each
    combination of formats. We also now only store the effective sized
    internal format of the images. Validation also happens using the sized
    internal format wherever feasible, instead of unsized formats or
    SwiftShader formats.
    
    Change-Id: Id55db490002ab8fc2f16f766c43b43f121e5768e
    Reviewed-on: https://swiftshader-review.googlesource.com/17429Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
    Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
    3b4a25c5
Device.hpp 2.2 KB
EditWeb IDE
×

Replace Device.hpp

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.