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

Make DXT alpha and color calculation more accurate #11530

Merged
merged 6 commits into from
Nov 4, 2018

Commits on Nov 4, 2018

  1. TexCache: Don't swizzle DXT1 colors.

    Hardware tests show that this shouldn't happen.  May be important for
    color tests, etc.
    unknownbrackets committed Nov 4, 2018
    Configuration menu
    Copy the full SHA
    38eb9d1 View commit details
    Browse the repository at this point in the history
  2. TexCache: Decode DXT1 zero alpha as black.

    Hardware tests show this is how it decodes, which is more like standard
    DXT1 decoding.
    unknownbrackets committed Nov 4, 2018
    Configuration menu
    Copy the full SHA
    35a1d8a View commit details
    Browse the repository at this point in the history
  3. TexCache: Mix DXT colors using 2/3 not 3/8.

    Hardware draws using 2/3.  Adding this way matches rounding, too.
    unknownbrackets committed Nov 4, 2018
    Configuration menu
    Copy the full SHA
    11ab4e8 View commit details
    Browse the repository at this point in the history
  4. TexCache: Respect color order in DXT3/5.

    Hardware is still doing DXT1 style colors in this scenario.
    unknownbrackets committed Nov 4, 2018
    Configuration menu
    Copy the full SHA
    c31e017 View commit details
    Browse the repository at this point in the history
  5. TexCache: In DXT3, don't swizzle alpha.

    Hardware doesn't seem to.
    unknownbrackets committed Nov 4, 2018
    Configuration menu
    Copy the full SHA
    df200fc View commit details
    Browse the repository at this point in the history
  6. TexCache: Round DXT5 alpha up.

    This isn't quite right, but it seems better than rounding down.
    Experimented with a lower round up value, but none were right - the
    weighting must be more complex.
    unknownbrackets committed Nov 4, 2018
    Configuration menu
    Copy the full SHA
    bd294f6 View commit details
    Browse the repository at this point in the history