projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bc03d2
)
mesa/shaderapi: add a getter for GL_SPIR_V_BINARY_ARB
author
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Sat, 10 Jun 2017 17:46:58 +0000
(19:46 +0200)
committer
Eduardo Lima Mitev
<elima@igalia.com>
Tue, 12 Dec 2017 07:18:32 +0000
(08:18 +0100)
v2: Use the 'spirv_data' member of gl_shader instead of a
dedicated flag. (Timothy Arceri)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/shaderapi.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/shaderapi.c
b/src/mesa/main/shaderapi.c
index f66172c4797ced9dc8abf80357805137d106df72..0f65cb0a9670a51678d35aef9506ce03b4af25dd 100644
(file)
--- a/
src/mesa/main/shaderapi.c
+++ b/
src/mesa/main/shaderapi.c
@@
-966,6
+966,9
@@
get_shaderiv(struct gl_context *ctx, GLuint name, GLenum pname, GLint *params)
case GL_SHADER_SOURCE_LENGTH:
*params = shader->Source ? strlen((char *) shader->Source) + 1 : 0;
break;
+ case GL_SPIR_V_BINARY_ARB:
+ *params = (shader->spirv_data != NULL);
+ break;
default:
_mesa_error(ctx, GL_INVALID_ENUM, "glGetShaderiv(pname)");
return;