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

Test aniso filter #3159

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Test aniso filter #3159

wants to merge 2 commits into from

Conversation

kdashg
Copy link
Contributor

@kdashg kdashg commented Oct 5, 2020

This runs clean on Firefox+Win+OpenGL, but not on ANGLE.
We should talk about how to resolve ANGLE's issues somehow.

@lexaknyazev
Copy link
Member

Is it consistent across different GPUs?

KhronosGroup/Vulkan-Docs#1361 could be related.

@kdashg
Copy link
Contributor Author

kdashg commented Oct 6, 2020

Oof, sounds like these might be "Harsh Realities".
It'd be nice to see what we can guarantee, though. I'll run more hardware tests.

Copy link
Member

@kenrussell kenrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

texture-min-mag-filter.html fails on macOS in both Firefox Nightly 83.0a1 and Chrome Canary 87.0.4280.0, running on the Intel GPU. Results from Firefox follow. I think this test is a bit too stringent.

PASS WebGL context exists

min: NEAREST
 mag: NEAREST
  aniso: 1
  res: 255,0,0,255
PASS Result was 255,0,0,255
  aniso: 2
  res: 255,0,0,255
PASS Result was 255,0,0,255
 mag: LINEAR
  aniso: 1
  res: 255,0,0,255
PASS Result was 255,0,0,255
  aniso: 2
  res: 255,0,0,255
PASS Result was 255,0,0,255

min: LINEAR
 mag: NEAREST
  aniso: 1
  res: 255,0,0,255
FAIL Result was 255,0,0,255
  aniso: 2
  res: 255,0,0,255
FAIL Result was 255,0,0,255
 mag: LINEAR
  aniso: 1
  res: 208,47,0,255
PASS Result was 208,47,0,255
  aniso: 2
  res: 209,46,0,255
PASS Result was 209,46,0,255

min: NEAREST_MIPMAP_NEAREST
 mag: NEAREST
  aniso: 1
  res: 255,0,0,255
PASS Result was 255,0,0,255
  aniso: 2
  res: 209,46,0,255
FAIL Result was 209,46,0,255
 mag: LINEAR
  aniso: 1
  res: 255,0,0,255
PASS Result was 255,0,0,255
  aniso: 2
  res: 209,46,0,255
FAIL Result was 209,46,0,255

min: LINEAR_MIPMAP_NEAREST
 mag: NEAREST
  aniso: 1
  res: 208,47,0,255
PASS Result was 208,47,0,255
  aniso: 2
  res: 209,46,0,255
PASS Result was 209,46,0,255
 mag: LINEAR
  aniso: 1
  res: 208,47,0,255
PASS Result was 208,47,0,255
  aniso: 2
  res: 209,46,0,255
PASS Result was 209,46,0,255

min: NEAREST_MIPMAP_LINEAR
 mag: NEAREST
  aniso: 1
  res: 167,0,88,255
PASS Result was 167,0,88,255
  aniso: 2
  res: 146,32,77,255
FAIL Result was 146,32,77,255
 mag: LINEAR
  aniso: 1
  res: 167,0,88,255
PASS Result was 167,0,88,255
  aniso: 2
  res: 146,32,77,255
FAIL Result was 146,32,77,255

min: LINEAR_MIPMAP_LINEAR
 mag: NEAREST
  aniso: 1
  res: 137,31,88,255
PASS Result was 137,31,88,255
  aniso: 2
  res: 146,32,77,255
PASS Result was 146,32,77,255
 mag: LINEAR
  aniso: 1
  res: 137,31,88,255
PASS Result was 137,31,88,255
  aniso: 2
  res: 146,32,77,255
PASS Result was 146,32,77,255

@kenrussell
Copy link
Member

BTW - the commit's message refers to #3143 but the pull request doesn't. When this is ready for re-review could you please update this pull request's comment? Thanks.

Copy link
Member

@kenrussell kenrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates. Still fails on Intel GPUs on macOS:

PASS WebGL context exists

min: NEAREST
 mag: NEAREST
  aniso: 1
PASS Result was 255,0,0,255
  aniso: 2
PASS Result was 255,0,0,255
 mag: LINEAR
  aniso: 1
PASS Result was 255,0,0,255
  aniso: 2
PASS Result was 255,0,0,255

min: LINEAR
 mag: NEAREST
  aniso: 1
FAIL Result was 255,0,0,255
  aniso: 2
FAIL Result was 255,0,0,255
 mag: LINEAR
  aniso: 1
PASS Result was 174,81,0,255
  aniso: 2
PASS Result was 174,81,0,255

min: NEAREST_MIPMAP_NEAREST
 mag: NEAREST
  aniso: 1
PASS Result was 255,0,0,255
  aniso: 2
FAIL Result was 174,81,0,255
 mag: LINEAR
  aniso: 1
PASS Result was 255,0,0,255
  aniso: 2
FAIL Result was 174,81,0,255

min: LINEAR_MIPMAP_NEAREST
 mag: NEAREST
  aniso: 1
PASS Result was 174,81,0,255
  aniso: 2
PASS Result was 174,81,0,255
 mag: LINEAR
  aniso: 1
PASS Result was 174,81,0,255
  aniso: 2
PASS Result was 174,81,0,255

min: NEAREST_MIPMAP_LINEAR
 mag: NEAREST
  aniso: 1
PASS Result was 179,0,76,255
  aniso: 2
FAIL Result was 122,57,76,255
 mag: LINEAR
  aniso: 1
PASS Result was 179,0,76,255
  aniso: 2
FAIL Result was 122,57,76,255

min: LINEAR_MIPMAP_LINEAR
 mag: NEAREST
  aniso: 1
PASS Result was 122,57,76,255
  aniso: 2
PASS Result was 122,57,76,255
 mag: LINEAR
  aniso: 1
PASS Result was 122,57,76,255
  aniso: 2
PASS Result was 122,57,76,255

PASS getError was expected value: NO_ERROR : End of run
PASS successfullyParsed is true

TEST COMPLETE

@kdashg
Copy link
Contributor Author

kdashg commented Oct 8, 2020 via email

@kenrussell
Copy link
Member

Got it, wasn't sure whether there was an implicit review request. Thanks for advancing the state of the art in texture filtering testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants