diff options
author | Tapani Pälli <[email protected]> | 2015-08-03 08:58:20 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2015-09-29 12:46:28 +0300 |
commit | c0722be9f58ef89dae98d8c459ec4f9589f97748 (patch) | |
tree | dcd6b8108ac7d3da8dea06210ae1dc1d1bcf2234 /src/mesa/main/shaderapi.h | |
parent | 12d510ab742baad88d624585938c723ffedbcae7 (diff) |
mesa: fix ARRAY_SIZE query for GetProgramResourceiv
Patch also refactors name length queries which were using array size
in computation, this has to be done in same time to avoid regression in
arb_program_interface_query-resource-query Piglit test.
Fixes rest of the failures with
ES31-CTS.program_interface_query.no-locations
v2: make additional check only for GS inputs
v3: create helper function for resource name length
so that it gets calculated only in one place
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Martin Peres <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.h')
-rw-r--r-- | src/mesa/main/shaderapi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.h b/src/mesa/main/shaderapi.h index 0a10191684f..fba767bf4c1 100644 --- a/src/mesa/main/shaderapi.h +++ b/src/mesa/main/shaderapi.h @@ -245,6 +245,9 @@ _mesa_get_program_resource_name(struct gl_shader_program *shProg, GLsizei bufSize, GLsizei *length, GLchar *name, const char *caller); +extern unsigned +_mesa_program_resource_name_len(struct gl_program_resource *res); + extern GLint _mesa_program_resource_location(struct gl_shader_program *shProg, GLenum programInterface, const char *name); |