Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backend: gl: add dither #952

Merged
merged 5 commits into from
Dec 3, 2022
Merged

backend: gl: add dither #952

merged 5 commits into from
Dec 3, 2022

Commits on Nov 30, 2022

  1. backend: gl: add dither

    Add bayer ordered dithering when presenting to screen. Reduce banding
    when using a strong blur. Also use 16-bit intermediary textures to
    preserve precision in the rendering pipeline.
    
    Related: #602
    
    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Nov 30, 2022
    Configuration menu
    Copy the full SHA
    0a2cd0f View commit details
    Browse the repository at this point in the history
  2. options: add dithered-present option

    See also 0a2cd0f
    
    Related: #602
    
    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Nov 30, 2022
    Configuration menu
    Copy the full SHA
    1271839 View commit details
    Browse the repository at this point in the history
  3. backend: gl: don't add dither where it's not needed

    If a pixel is perfectly representable as an 8-bit number, don't add
    dither. Reduce artifacts where dither is unnecessary.
    
    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Nov 30, 2022
    Configuration menu
    Copy the full SHA
    d704e0f View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2022

  1. backend: gl: try different back buffer formats

    Prefer RGB formats first, because they use less memory; but fallback to
    RGBA formats, as they are formats required by OpenGL.
    
    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    d38b0ea View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2022

  1. backend: gl: fix use-after-scope

    'format' was pointing to an array with a shorter lifetime
    
    suggested by @tryone144
    
    Co-authored-by: Bernd Busse <bernd@busse-net.de>
    yshui and tryone144 authored Dec 2, 2022
    Configuration menu
    Copy the full SHA
    236c822 View commit details
    Browse the repository at this point in the history