[Mesa-dev] [PATCH shader-db 3/4] run: don't eliminate inputs and outputs for separate shaders
Marek Olšák
maraeo at gmail.com
Thu Jun 30 15:03:25 UTC 2016
From: Marek Olšák <marek.olsak at amd.com>
---
run.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/run.c b/run.c
index a2639f7..9986a63 100644
--- a/run.c
+++ b/run.c
@@ -627,6 +627,10 @@ main(int argc, char **argv)
if (type == TYPE_CORE || type == TYPE_COMPAT) {
GLuint prog = glCreateProgram();
+ /* Don't eliminate inputs and outputs. */
+ if (num_shaders == 1)
+ glProgramParameteri(prog, GL_PROGRAM_SEPARABLE, GL_TRUE);
+
for (unsigned i = 0; i < num_shaders; i++) {
GLuint s = glCreateShader(shader[i].type);
glShaderSource(s, 1, &shader[i].text, &shader[i].length);
--
2.7.4
More information about the mesa-dev
mailing list