mesa: Add support for EXT_clear_texture

This extension implements a subset of ARB_clear_texture (i.e.
only the features that are not available in OpenGL ES have been
dropped).

v2: Move call declarations from function to offsets  (Emil)

v3: Update llvmpipe and softpipe expectations

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10325>
This commit is contained in:
Gert Wollny 2021-04-19 13:59:30 +02:00 committed by Marge Bot
parent 028a83d9ad
commit 757bc6d37a
6 changed files with 33 additions and 15 deletions

View File

@ -795,14 +795,6 @@ spec/egl_khr_fence_sync/conformance/eglcreatesynckhr_wrong_display_same_thread:
spec/egl_khr_gl_image/egl_khr_gl_renderbuffer_image-clear-shared-image gl_depth_component24: fail
spec/egl_nok_swap_region/basic: skip
spec/egl_nok_texture_from_pixmap/basic: skip
spec/ext_clear_texture/ext_clear_texture-3d: skip
spec/ext_clear_texture/ext_clear_texture-base-formats: skip
spec/ext_clear_texture/ext_clear_texture-clear-max-level: skip
spec/ext_clear_texture/ext_clear_texture-cube: skip
spec/ext_clear_texture/ext_clear_texture-error: skip
spec/ext_clear_texture/ext_clear_texture-multisample: skip
spec/ext_clear_texture/ext_clear_texture-stencil: skip
spec/ext_clear_texture/ext_clear_texture-texview: skip
spec/ext_depth_bounds_test/depth_bounds: skip
spec/ext_direct_state_access/indexed-state-queries 12/getdoublei_vext: skip
spec/ext_direct_state_access/indexed-state-queries 12/getfloati_vext: skip

View File

@ -1836,14 +1836,7 @@ spec/egl_khr_fence_sync/conformance/eglcreatesynckhr_wrong_display_same_thread:
spec/egl_khr_gl_image/egl_khr_gl_renderbuffer_image-clear-shared-image gl_depth_component24: fail
spec/egl_nok_swap_region/basic: skip
spec/egl_nok_texture_from_pixmap/basic: skip
spec/ext_clear_texture/ext_clear_texture-3d: skip
spec/ext_clear_texture/ext_clear_texture-base-formats: skip
spec/ext_clear_texture/ext_clear_texture-clear-max-level: skip
spec/ext_clear_texture/ext_clear_texture-cube: skip
spec/ext_clear_texture/ext_clear_texture-error: skip
spec/ext_clear_texture/ext_clear_texture-multisample: skip
spec/ext_clear_texture/ext_clear_texture-stencil: skip
spec/ext_clear_texture/ext_clear_texture-texview: skip
spec/ext_demote_to_helper_invocation/execution/demote: skip
spec/ext_demote_to_helper_invocation/execution/demote_with_derivatives: skip
spec/ext_direct_state_access/indexed-state-queries 12/getdoublei_vext: skip

View File

@ -1295,6 +1295,32 @@
</category>
<category name="GL_EXT_clear_texture" number="269">
<function name ="ClearTexImageEXT" es2="3.1" alias="ClearTexImage">
<param name="texture" type="GLuint"/>
<param name="level" type="GLint"/>
<param name="format" type="GLenum"/>
<param name="type" type="GLenum"/>
<param name="data" type="const GLvoid *"/>
</function>
<function name ="ClearTexSubImageEXT" es2="3.1" alias="ClearTexSubImage">
<param name="texture" type="GLuint"/>
<param name="level" type="GLint"/>
<param name="xoffset" type="GLint"/>
<param name="yoffset" type="GLint"/>
<param name="zoffset" type="GLint"/>
<param name="width" type="GLsizei"/>
<param name="height" type="GLsizei"/>
<param name="depth" type="GLsizei"/>
<param name="format" type="GLenum"/>
<param name="type" type="GLenum"/>
<param name="data" type="const GLvoid *"/>
</function>
</category>
<category name="GL_EXT_clip_control" number="290">
<enum name="LOWER_LEFT_EXT" value = "0x8CA1"/>

View File

@ -1689,6 +1689,8 @@ offsets = {
"VertexAttribs2hvNV": 1653,
"VertexAttribs3hvNV": 1654,
"VertexAttribs4hvNV": 1655,
"ClearTexImageEXT": 1656,
"ClearTexSubImageEXT": 1657,
}
functions = [

View File

@ -219,6 +219,7 @@ EXT(EXT_blend_func_separate , EXT_blend_func_separate
EXT(EXT_blend_minmax , EXT_blend_minmax , GLL, x , ES1, ES2, 1995)
EXT(EXT_blend_subtract , dummy_true , GLL, x , x , x , 1995)
EXT(EXT_buffer_storage , ARB_buffer_storage , x , x , x , 31, 2015)
EXT(EXT_clear_texture , ARB_clear_texture , x , x , x , 31, 2016)
EXT(EXT_clip_control , ARB_clip_control , x , x , x , ES2, 2017)
EXT(EXT_clip_cull_distance , ARB_cull_distance , x , x , x , 30, 2016)
EXT(EXT_color_buffer_float , dummy_true , x , x , x , 30, 2013)

View File

@ -2497,6 +2497,10 @@ const struct function gles2_functions_possible[] = {
{ "glGetQueryObjectivEXT", 20, -1 },
{ "glGetQueryObjectuivEXT", 20, -1 },
/* GL_EXT_clear_texture */
{ "glClearTexImageEXT", 31, -1 },
{ "glClearTexSubImageEXT", 31, -1 },
/* GL_EXT_clip_control */
{ "glClipControlEXT", 20, -1 },