summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderimage.h
diff options
context:
space:
mode:
authorAntia Puentes <apuentes@igalia.com>2015-11-15 18:01:56 +0100
committerEduardo Lima Mitev <elima@igalia.com>2016-03-03 15:14:07 +0100
commit876f7a7c081dd8261a3d969ec1d76ddac64afcbb (patch)
treeac23daf106d3bb33cc2138a2de608b0adb00c5d8 /src/mesa/main/shaderimage.h
parentfae2b10ff9ec568df328785183e483d4fcbf0f83 (diff)
downloadexternal_mesa3d-876f7a7c081dd8261a3d969ec1d76ddac64afcbb.zip
external_mesa3d-876f7a7c081dd8261a3d969ec1d76ddac64afcbb.tar.gz
external_mesa3d-876f7a7c081dd8261a3d969ec1d76ddac64afcbb.tar.bz2
mesa/shaderimage: Make is_image_format_supported public
It will be used by the ARB_internalformat_query2 implementation to implement queries related to the ARB_shader_image_load_store extension. Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/main/shaderimage.h')
-rw-r--r--src/mesa/main/shaderimage.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/shaderimage.h b/src/mesa/main/shaderimage.h
index 94ee814..794c926 100644
--- a/src/mesa/main/shaderimage.h
+++ b/src/mesa/main/shaderimage.h
@@ -43,6 +43,14 @@ mesa_format
_mesa_get_shader_image_format(GLenum format);
/**
+ * Return whether an image format should be supported based on the current API
+ * version of the context.
+ */
+bool
+_mesa_is_shader_image_format_supported(const struct gl_context *ctx,
+ GLenum format);
+
+/**
* Get a single image unit struct with the default state.
*/
struct gl_image_unit