projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bba29e
)
glsl: make linker error message more informative
author
Timothy Arceri
<t_arceri@yahoo.com.au>
Wed, 12 Aug 2015 07:01:52 +0000
(17:01 +1000)
committer
Timothy Arceri
<t_arceri@yahoo.com.au>
Thu, 13 Aug 2015 11:57:20 +0000
(21:57 +1000)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/glsl/linker.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/linker.cpp
b/src/glsl/linker.cpp
index d7efea5e05d3bdc054c77d5ff617d729e3f7faa5..a7cd82049bd1d12e1412c7ee37b59bd470f7cf8b 100644
(file)
--- a/
src/glsl/linker.cpp
+++ b/
src/glsl/linker.cpp
@@
-2880,8
+2880,9
@@
check_image_resources(struct gl_context *ctx, struct gl_shader_program *prog)
if (sh) {
if (sh->NumImages > ctx->Const.Program[i].MaxImageUniforms)
- linker_error(prog, "Too many %s shader image uniforms\n",
- _mesa_shader_stage_to_string(i));
+ linker_error(prog, "Too many %s shader image uniforms (%u > %u)\n",
+ _mesa_shader_stage_to_string(i), sh->NumImages,
+ ctx->Const.Program[i].MaxImageUniforms);
total_image_units += sh->NumImages;