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
  • formatutils.cpp
Find file
BlameHistoryPermalink
  • Alexis Hétu's avatar
    Allow rendering to half float in ES2 contexts when possible · fbec291e
    Alexis Hétu authored Oct 21, 2020
    According to the EXT_color_buffer_half_float spec:
    
    "Dependencies on OES_texture_half_float
    
        If OES_texture_half_float is not supported, then all references to
        RGBA16F_EXT, RGB16F_EXT, RG16F_EXT, R16F_EXT, HALF_FLOAT_OES and
        half should be ignored.
    
        If OES_texture_half_float is supported, textures created with:
    
            <internalformat> = RGBA
            <format> = RGBA
            <type> = HALF_FLOAT_OES
    
        are renderable."
    
    This fixes 4 viz_unittests when running with SwANGLE:
        All/GLI420ConverterPixelTest.ScaleAndConvert/0
        All/GLI420ConverterPixelTest.ScaleAndConvert/1
        GLScalerPixelTest.Example_ScaleAndExportForScreenVideoCapture
        GLScalerPixelTest.ScalesWithColorManagement
    
    The original attempt at landing this change
    (https://chromium-review.googlesource.com/c/angle/angle/+/2489726)
    was reverted due to dEQP failures on the Metal backend. After some
    investigation, it was decided to simply disable the 2 offending
    tests for now.
    
    Bug: angleproject:5174
    Change-Id: Id1e382b72d91109e4718c729cc6c5f0a0f413d7d
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2491930Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Commit-Queue: Alexis Hétu <sugoi@chromium.org>
    fbec291e
formatutils.cpp 156 KB
EditWeb IDE
×

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