Skip to content

Commit c01b768

Browse files
authored
Remove MAX_COLOR_ATTACHMENTS_WITH_ACTIVE_PIXEL_LOCAL_STORAGE enum. (#3726)
Remove this enum from the WEBGL_shader_pixel_local_storage extension, and renumber the remaining enums, both of which have already been done in the underlying ANGLE extension. Remove the use of this enum from the pixel local storage CTS test as well. The new test passes on Chromium with all of these changes made. Verify enum values exposed by the PLS extension, on Alexey's suggestion. Associated with https://anglebug.com/40096838 .
1 parent ee40ae7 commit c01b768

File tree

2 files changed

+35
-20
lines changed

2 files changed

+35
-20
lines changed

extensions/WEBGL_shader_pixel_local_storage/extension.xml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,19 @@
6868
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
6969
interface WEBGL_shader_pixel_local_storage {
7070
const GLenum MAX_PIXEL_LOCAL_STORAGE_PLANES_WEBGL = 0x96E0;
71-
const GLenum MAX_COLOR_ATTACHMENTS_WITH_ACTIVE_PIXEL_LOCAL_STORAGE_WEBGL = 0x96E1;
72-
const GLenum MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES_WEBGL = 0x96E2;
73-
const GLenum PIXEL_LOCAL_STORAGE_ACTIVE_PLANES_WEBGL = 0x96E3;
74-
const GLenum LOAD_OP_ZERO_WEBGL = 0x96E4;
75-
const GLenum LOAD_OP_CLEAR_WEBGL = 0x96E5;
76-
const GLenum LOAD_OP_LOAD_WEBGL = 0x96E6;
77-
const GLenum STORE_OP_STORE_WEBGL = 0x96E7;
78-
const GLenum PIXEL_LOCAL_FORMAT_WEBGL = 0x96E8;
79-
const GLenum PIXEL_LOCAL_TEXTURE_NAME_WEBGL = 0x96E9;
80-
const GLenum PIXEL_LOCAL_TEXTURE_LEVEL_WEBGL = 0x96EA;
81-
const GLenum PIXEL_LOCAL_TEXTURE_LAYER_WEBGL = 0x96EB;
82-
const GLenum PIXEL_LOCAL_CLEAR_VALUE_FLOAT_WEBGL = 0x96EC;
83-
const GLenum PIXEL_LOCAL_CLEAR_VALUE_INT_WEBGL = 0x96ED;
84-
const GLenum PIXEL_LOCAL_CLEAR_VALUE_UNSIGNED_INT_WEBGL = 0x96EE;
71+
const GLenum MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES_WEBGL = 0x96E1;
72+
const GLenum PIXEL_LOCAL_STORAGE_ACTIVE_PLANES_WEBGL = 0x96E2;
73+
const GLenum LOAD_OP_ZERO_WEBGL = 0x96E3;
74+
const GLenum LOAD_OP_CLEAR_WEBGL = 0x96E4;
75+
const GLenum LOAD_OP_LOAD_WEBGL = 0x96E5;
76+
const GLenum STORE_OP_STORE_WEBGL = 0x96E6;
77+
const GLenum PIXEL_LOCAL_FORMAT_WEBGL = 0x96E7;
78+
const GLenum PIXEL_LOCAL_TEXTURE_NAME_WEBGL = 0x96E8;
79+
const GLenum PIXEL_LOCAL_TEXTURE_LEVEL_WEBGL = 0x96E9;
80+
const GLenum PIXEL_LOCAL_TEXTURE_LAYER_WEBGL = 0x96EA;
81+
const GLenum PIXEL_LOCAL_CLEAR_VALUE_FLOAT_WEBGL = 0x96EB;
82+
const GLenum PIXEL_LOCAL_CLEAR_VALUE_INT_WEBGL = 0x96EC;
83+
const GLenum PIXEL_LOCAL_CLEAR_VALUE_UNSIGNED_INT_WEBGL = 0x96ED;
8584
GLboolean isCoherent();
8685
undefined framebufferTexturePixelLocalStorageWEBGL(GLint plane,
8786
WebGLTexture? texture,
@@ -221,7 +220,6 @@ interface WEBGL_shader_pixel_local_storage {
221220
<table>
222221
<tr><th>pname</th><th>returned type</th></tr>
223222
<tr><td>MAX_PIXEL_LOCAL_STORAGE_PLANES_WEBGL</td><td>GLint</td></tr>
224-
<tr><td>MAX_COLOR_ATTACHMENTS_WITH_ACTIVE_PIXEL_LOCAL_STORAGE_WEBGL</td><td>GLint</td></tr>
225223
<tr><td>MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES_WEBGL</td><td>GLint</td></tr>
226224
<tr><td>PIXEL_LOCAL_STORAGE_ACTIVE_PLANES_WEBGL</td><td>GLint</td></tr>
227225
</table>
@@ -282,5 +280,8 @@ interface WEBGL_shader_pixel_local_storage {
282280
<revision date="2023/09/08">
283281
<change>Changed srcOffset arguments to "unsigned long long" for Wasm.</change>
284282
</revision>
283+
<revision date="2025/03/24">
284+
<change>Removed MAX_COLOR_ATTACHMENTS_WITH_ACTIVE_PIXEL_LOCAL_STORAGE_WEBGL enum, which was removed from the underlying ANGLE extension.</change>
285+
</revision>
285286
</history>
286287
</draft>

sdk/tests/conformance2/extensions/webgl-shader-pixel-local-storage.html

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
}
6666
checkDependencyExtensionsEnabled(true);
6767

68+
checkEnums();
6869
checkImplementationDependentLimits();
6970
checkInitialValues();
7071
checkWebGLNonNormativeBehavior();
@@ -116,12 +117,28 @@
116117
}
117118
}
118119

120+
function checkEnums() {
121+
debug("\nVerify the extension's enum values, since they changed during the extension's development.");
122+
shouldBe("pls.MAX_PIXEL_LOCAL_STORAGE_PLANES_WEBGL", "0x96E0");
123+
shouldBe("pls.MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES_WEBGL", "0x96E1");
124+
shouldBe("pls.PIXEL_LOCAL_STORAGE_ACTIVE_PLANES_WEBGL", "0x96E2");
125+
shouldBe("pls.LOAD_OP_ZERO_WEBGL", "0x96E3");
126+
shouldBe("pls.LOAD_OP_CLEAR_WEBGL", "0x96E4");
127+
shouldBe("pls.LOAD_OP_LOAD_WEBGL", "0x96E5");
128+
shouldBe("pls.STORE_OP_STORE_WEBGL", "0x96E6");
129+
shouldBe("pls.PIXEL_LOCAL_FORMAT_WEBGL", "0x96E7");
130+
shouldBe("pls.PIXEL_LOCAL_TEXTURE_NAME_WEBGL", "0x96E8");
131+
shouldBe("pls.PIXEL_LOCAL_TEXTURE_LEVEL_WEBGL", "0x96E9");
132+
shouldBe("pls.PIXEL_LOCAL_TEXTURE_LAYER_WEBGL", "0x96EA");
133+
shouldBe("pls.PIXEL_LOCAL_CLEAR_VALUE_FLOAT_WEBGL", "0x96EB");
134+
shouldBe("pls.PIXEL_LOCAL_CLEAR_VALUE_INT_WEBGL", "0x96EC");
135+
shouldBe("pls.PIXEL_LOCAL_CLEAR_VALUE_UNSIGNED_INT_WEBGL", "0x96ED");
136+
}
137+
119138
function checkImplementationDependentLimits() {
120139
debug("\nVerify conformant implementation-dependent PLS limits.");
121140
window.MAX_PIXEL_LOCAL_STORAGE_PLANES =
122141
gl.getParameter(pls.MAX_PIXEL_LOCAL_STORAGE_PLANES_WEBGL);
123-
window.MAX_COLOR_ATTACHMENTS_WITH_ACTIVE_PIXEL_LOCAL_STORAGE =
124-
gl.getParameter(pls.MAX_COLOR_ATTACHMENTS_WITH_ACTIVE_PIXEL_LOCAL_STORAGE_WEBGL);
125142
window.MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES =
126143
gl.getParameter(pls.MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES_WEBGL);
127144
wtu.glErrorShouldBe(gl, gl.NONE, "Pixel local storage queries should be supported.");
@@ -131,14 +148,11 @@
131148

132149
// Table 6.X: Impementation Dependent Pixel Local Storage Limits.
133150
shouldBeTrue("MAX_PIXEL_LOCAL_STORAGE_PLANES >= 4");
134-
shouldBeTrue("MAX_COLOR_ATTACHMENTS_WITH_ACTIVE_PIXEL_LOCAL_STORAGE >= 0");
135151
shouldBeTrue("MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES >= 4");
136152

137153
// Logical deductions based on 6.X.
138154
shouldBeTrue(`MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES >=
139155
MAX_PIXEL_LOCAL_STORAGE_PLANES`);
140-
shouldBeTrue(`MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES >=
141-
MAX_COLOR_ATTACHMENTS_WITH_ACTIVE_PIXEL_LOCAL_STORAGE`);
142156
shouldBeTrue(`MAX_COLOR_ATTACHMENTS + MAX_PIXEL_LOCAL_STORAGE_PLANES >=
143157
MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES`);
144158
shouldBeTrue(`MAX_DRAW_BUFFERS + MAX_PIXEL_LOCAL_STORAGE_PLANES >=

0 commit comments

Comments
 (0)