-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warning in checkCallResults for compressed textures (#4053)
We sample a compressed texture on the GPU and compare that to expected. If they don't match we try to identify which texels were sampled. This is done by doing a binary search, creating textures with some pixels white and some black and then sampling the texture to see if those white pixels contributed to the sample values. We can't do this for compressed textures because we can not easily create a compressed texture with white and black pixels exactly where we want them to appear. So, for compressed textures we just use rgba8unorm when identifying sample points. That can be useful to help find major bugs either in the CTS itself or in the GPU that are true for all texture formats. Unfortunately, if the bug is specificially with compressed textures this doesn't help. So, print out a warning that the sample points might not match. Also, change the diagram to show blocks. Eexample when blockWidth = 2, blockHeight = 2 ``` +===+===+===+===+ # a | # | # +---+---+---+---+ # | # | # +===+===+===+===+ # | # | # +---+---+---+---+ # | # | b # +===+===+===+===+ ```
- Loading branch information
Showing
1 changed file
with
45 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters