Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion extensions/WEBGL_render_shared_exponent/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
name="QCOM_render_shared_exponent">
<addendum>
Clearing or drawing to a shared exponent color buffer will generate <code>INVALID_OPERATION</code>
if the associated color write mask has different values for red, green, and blue channels.
if the associated color write mask has different values for red, green, blue, and alpha channels.
</addendum>
</mirrors>

Expand All @@ -44,5 +44,8 @@ interface WEBGL_render_shared_exponent {
<revision date="2024/01/25">
<change>Promoted to Community Approved.</change>
</revision>
<revision date="2026/06/30">
<change>Adjusted color write mask validation to require the same state for all channels.</change>
</revision>
</history>
</extension>
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@
function expectError(enabled, effectiveMask, operation) {
if (!enabled ||
effectiveMask == 0x0 /* 0000 */ ||
effectiveMask == 0x8 /* 000A */ ||
effectiveMask == 0x7 /* RGB0 */ ||
effectiveMask == 0xF /* RGBA */ ) {
wtu.glErrorShouldBe(gl, gl.NO_ERROR, operation);
} else {
Expand Down Expand Up @@ -210,9 +208,21 @@
dbiExt.colorMaskiOES(0, true, false, false, false);
runOps(enabled, 1); // overridden

debug("Setting compatible color mask on RGB9_E5 draw buffer")
debug("Setting incompatible color mask on RGB9_E5 draw buffer")
dbiExt.colorMaskiOES(0, true, true, true, false);
runOps(enabled, 7); // overridden

debug("Setting incompatible color mask on RGB9_E5 draw buffer")
dbiExt.colorMaskiOES(0, false, false, false, true);
runOps(enabled, 8); // overridden

debug("Setting compatible color mask on RGB9_E5 draw buffer")
dbiExt.colorMaskiOES(0, false, false, false, false);
runOps(enabled, 0); // overridden

debug("Setting compatible color mask on RGB9_E5 draw buffer")
dbiExt.colorMaskiOES(0, true, true, true, true);
runOps(enabled, 15); // overridden
}
}
}
Expand Down
Loading