Commit 18124d72 authored by Indrajit Kumar Das's avatar Indrajit Kumar Das Committed by Marge Bot

glapi/copyimage: Implement CopyImageSubDataNV

Implement CopyImageSubDataNV from NV_copy_image spec.
This is derived out of the existing implementation of CopyImageSubData.
It differs from CopyImageSubData in accordance with the differences
laid down in the ARB_copy_image spec.
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Tested-by: Marge Bot <!3649>
Part-of: <!3649>
parent ae7bda27
Pipeline #112053 passed with stages
in 20 minutes and 57 seconds
GL_NV_copy_image
VK_KHR_shader_non_semantic_info on Intel, RADV.
<?xml version="1.0"?>
<!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
<OpenGLAPI>
<category name="GL_NV_copy_image" number="376" no_error="true">
<function name="CopyImageSubDataNV">
<param name="srcName" type="GLuint"/>
<param name="srcTarget" type="GLenum"/>
<param name="srcLevel" type="GLint"/>
<param name="srcX" type="GLint"/>
<param name="srcY" type="GLint"/>
<param name="srcZ" type="GLint"/>
<param name="dstName" type="GLuint"/>
<param name="dstTarget" type="GLenum"/>
<param name="dstLevel" type="GLint"/>
<param name="dstX" type="GLint"/>
<param name="dstY" type="GLint"/>
<param name="dstZ" type="GLint"/>
<param name="width" type="GLsizei"/>
<param name="height" type="GLsizei"/>
<param name="depth" type="GLsizei"/>
</function>
</category>
</OpenGLAPI>
......@@ -12964,6 +12964,8 @@
<xi:include href="EXT_separate_shader_objects.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="NV_copy_image.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="EXT_vertex_attrib_64bit.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="AMD_depth_clamp_separate.xml"
......
......@@ -133,6 +133,7 @@ api_xml_files = files(
'KHR_robustness.xml',
'KHR_robustness_es.xml',
'KHR_texture_compression_astc.xml',
'NV_copy_image.xml',
'NV_conditional_render.xml',
'NV_primitive_restart.xml',
'NV_texture_barrier.xml',
......
......@@ -1640,6 +1640,7 @@ offsets = {
"GetNamedStringivARB": 1604,
"EGLImageTargetTexStorageEXT" : 1605,
"EGLImageTargetTextureStorageEXT" : 1606,
"CopyImageSubDataNV": 1607,
}
functions = [
......
This diff is collapsed.
......@@ -49,6 +49,20 @@ _mesa_CopyImageSubData(GLuint srcName, GLenum srcTarget, GLint srcLevel,
GLint destX, GLint destY, GLint destZ,
GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
void GLAPIENTRY
_mesa_CopyImageSubDataNV_no_error(GLuint srcName, GLenum srcTarget, GLint srcLevel,
GLint srcX, GLint srcY, GLint srcZ,
GLuint destName, GLenum destTarget, GLint destLevel,
GLint destX, GLint destY, GLint destZ,
GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
extern void GLAPIENTRY
_mesa_CopyImageSubDataNV(GLuint srcName, GLenum srcTarget, GLint srcLevel,
GLint srcX, GLint srcY, GLint srcZ,
GLuint destName, GLenum destTarget, GLint destLevel,
GLint destX, GLint destY, GLint destZ,
GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
#ifdef __cplusplus
}
#endif
......
......@@ -378,6 +378,7 @@ EXT(NV_conservative_raster , NV_conservative_raster
EXT(NV_conservative_raster_dilate , NV_conservative_raster_dilate , GLL, GLC, ES1, ES2, 2015)
EXT(NV_conservative_raster_pre_snap , NV_conservative_raster_pre_snap , GLL, GLC, ES1, ES2, 2017)
EXT(NV_conservative_raster_pre_snap_triangles, NV_conservative_raster_pre_snap_triangles, GLL, GLC, ES1, ES2, 2015)
EXT(NV_copy_image , NV_copy_image , GLL, GLC, x , x, 2009)
EXT(NV_depth_clamp , ARB_depth_clamp , GLL, GLC, x , x , 2001)
EXT(NV_draw_buffers , dummy_true , x , x , x , ES2, 2011)
EXT(NV_fbo_color_attachments , dummy_true , x , x , x , ES2, 2010)
......
......@@ -4394,6 +4394,7 @@ struct gl_extensions
GLboolean MESA_ycbcr_texture;
GLboolean NV_compute_shader_derivatives;
GLboolean NV_conditional_render;
GLboolean NV_copy_image;
GLboolean NV_fill_rectangle;
GLboolean NV_fog_distance;
GLboolean NV_point_sprite;
......
......@@ -563,6 +563,9 @@ const struct function common_desktop_functions_possible[] = {
{ "glEGLImageTargetTexStorageEXT", 31, -1 },
{ "glEGLImageTargetTextureStorageEXT", 31, -1 },
/* GL_NV_copy_image */
{ "glCopyImageSubDataNV", 31, -1 },
/* GL 3.2 */
{ "glGetInteger64i_v", 32, -1 },
{ "glGetBufferParameteri64v", 32, -1 },
......
......@@ -1036,6 +1036,7 @@ void st_init_extensions(struct pipe_screen *screen,
extensions->MESA_framebuffer_flip_y = GL_TRUE;
extensions->MESA_pack_invert = GL_TRUE;
extensions->NV_copy_image = GL_TRUE;
extensions->NV_fog_distance = GL_TRUE;
extensions->NV_texture_env_combine4 = GL_TRUE;
extensions->NV_texture_rectangle = GL_TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment