mesa: Add GL API support for ARB_copy_image
This adds the API entrypoint, error checking logic, and a driver hook for
the ARB_copy_image extension.
v2: Fix a typo in ARB_copy_image.xml and add it to the makefile
v3: Put ARB_copy_image.xml in the right place alphebetically in the
makefile and properly prefix the commit message
v4: Fixed some line wrapping and added a check for null
v5: Check for incomplete renderbuffers
Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
v6: Update dispatch_sanity for the addition of CopyImageSubData
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
|
||||
|
||||
<OpenGLAPI>
|
||||
|
||||
<category name="GL_ARB_copy_image" number="123">
|
||||
|
||||
<function name="CopyImageSubData" offset="assign">
|
||||
<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="srcWidth" type="GLsizei"/>
|
||||
<param name="srcHeight" type="GLsizei"/>
|
||||
<param name="srcDepth" type="GLsizei"/>
|
||||
</function>
|
||||
|
||||
</category>
|
||||
|
||||
</OpenGLAPI>
|
||||
@@ -117,6 +117,7 @@ API_XML = \
|
||||
ARB_compressed_texture_pixel_storage.xml \
|
||||
ARB_compute_shader.xml \
|
||||
ARB_copy_buffer.xml \
|
||||
ARB_copy_image.xml \
|
||||
ARB_debug_output.xml \
|
||||
ARB_depth_buffer_float.xml \
|
||||
ARB_depth_clamp.xml \
|
||||
|
||||
@@ -8302,7 +8302,7 @@
|
||||
|
||||
<xi:include href="ARB_compute_shader.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
|
||||
|
||||
<!-- ARB extension #123 -->
|
||||
<xi:include href="ARB_copy_image.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
|
||||
|
||||
<xi:include href="ARB_texture_view.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
|
||||
|
||||
|
||||
@@ -62,6 +62,7 @@ header = """/**
|
||||
#include "main/condrender.h"
|
||||
#include "main/context.h"
|
||||
#include "main/convolve.h"
|
||||
#include "main/copyimage.h"
|
||||
#include "main/depth.h"
|
||||
#include "main/dlist.h"
|
||||
#include "main/drawpix.h"
|
||||
|
||||
Reference in New Issue
Block a user