Closed
Bug 697757
Opened 13 years ago
Closed 13 years ago
context-attributes-alpha-depth-stencil-antialias.html test failures
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
FIXED
mozilla10
People
(Reporter: drs, Assigned: drs)
Details
Attachments
(1 file, 3 obsolete files)
3.32 KB,
patch
|
drs
:
review+
|
Details | Diff | Splinter Review |
https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/context/context-attributes-alpha-depth-stencil-antialias.html This page fails because we're not giving the user back the info they inputted and instead getting an internal format.
Assignee | ||
Comment 1•13 years ago
|
||
Proposed patch. Ran mochitests locally on OSX 10.7.
Assignee: nobody → dsherk
Attachment #570035 -
Flags: review?(jgilbert)
Assignee | ||
Comment 2•13 years ago
|
||
So this patch is wrong and we're going to hold off on fixing it for now. jgilbert tells me that it's probably due to this block of code in gfx/thebes/GLContext.cpp: 1104 // Allocate texture 1105 if (aUseReadFBO) { 1106 fBindTexture(LOCAL_GL_TEXTURE_2D, newOffscreenTexture); 1107 fTexParameteri(LOCAL_GL_TEXTURE_2D, LOCAL_GL_TEXTURE_MIN_FILTER, LOCAL_GL_LINEAR); 1108 fTexParameteri(LOCAL_GL_TEXTURE_2D, LOCAL_GL_TEXTURE_MAG_FILTER, LOCAL_GL_LINEAR); 1109 1110 if (alpha) { 1111 fTexImage2D(LOCAL_GL_TEXTURE_2D, 1112 0, 1113 LOCAL_GL_RGBA, 1114 aSize.width, aSize.height, 1115 0, 1116 LOCAL_GL_RGBA, 1117 LOCAL_GL_UNSIGNED_BYTE, 1118 NULL); 1119 1120 cf.red = cf.green = cf.blue = cf.alpha = 8; 1121 } else { 1122 fTexImage2D(LOCAL_GL_TEXTURE_2D, 1123 0, 1124 LOCAL_GL_RGB, 1125 aSize.width, aSize.height, 1126 0, 1127 LOCAL_GL_RGB, 1128 #ifdef XP_WIN 1129 LOCAL_GL_UNSIGNED_BYTE, 1130 #else 1131 mIsGLES2 ? LOCAL_GL_UNSIGNED_SHORT_5_6_5 1132 : LOCAL_GL_UNSIGNED_BYTE, 1133 #endif 1134 NULL); 1135 1136 #ifdef XP_WIN 1137 cf.red = cf.green = cf.blue = 8; 1138 #else 1139 cf.red = 5; 1140 cf.green = 6; 1141 cf.blue = 5; 1142 #endif 1143 cf.alpha = 0; 1144 } 1145 }
Comment 3•13 years ago
|
||
Comment on attachment 570035 [details] [diff] [review] Patch v1.0, fixed stencil alpha test failures. After offline discussion, the proper approach seems to be that we need to check whether our requests for the presence/absence of certain buffers is respected during offscreen context creation.
Attachment #570035 -
Flags: review?(jgilbert) → review-
Assignee | ||
Comment 4•13 years ago
|
||
If we request alpha and it isn't enabled, or we request it off and it gets enabled, we now fail the pbuffer creation and fall back to FBOs. This is bad for performance but allows us to pass the conformance test in this case. Ran mochitests locally.
Attachment #570035 -
Attachment is obsolete: true
Attachment #570050 -
Flags: review?(jgilbert)
Assignee | ||
Comment 5•13 years ago
|
||
Whoops, forgot to remove this test from failing_tests_mac.txt.
Attachment #570050 -
Attachment is obsolete: true
Attachment #570050 -
Flags: review?(jgilbert)
Attachment #570051 -
Flags: review?(jgilbert)
Comment 6•13 years ago
|
||
Comment on attachment 570051 [details] [diff] [review] Patch v1.0, fix for alpha being improperly set. Review of attachment 570051 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. I'll just add that since we are able to fail out of PBuffer creation before we allocate the PBuffer, it should have a negligible effect on context start-up performance. Also it lets us provide a proper context for a given request.
Attachment #570051 -
Flags: review?(jgilbert) → review+
Assignee | ||
Comment 7•13 years ago
|
||
Running on Try: https://tbpl.mozilla.org/?tree=Try&rev=20a50709f71c
Assignee | ||
Comment 8•13 years ago
|
||
Didn't notice at first, but this also fixes tex-input-validation.html. I removed this from failing_tests_mac.txt. +r carried
Attachment #570051 -
Attachment is obsolete: true
Attachment #570382 -
Flags: review+
Comment 9•13 years ago
|
||
More recent try: https://tbpl.mozilla.org/?tree=Try&rev=69bb43191112
Status: NEW → ASSIGNED
Comment 10•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/4f67677970f2
Target Milestone: --- → mozilla10
https://hg.mozilla.org/mozilla-central/rev/4f67677970f2
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•