summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-06-07 15:25:59 +1000
committerDave Airlie <[email protected]>2016-08-23 11:03:46 +1000
commit0bce055d9ee11847bdf9adac5f216d8630a7824a (patch)
tree492448bc87f2aba984bd4062b25800e2343b338d /src/mesa/main
parent6a332a389ad05da2793475f05564250c0c4f3af5 (diff)
mesa/subroutines: drop the old subroutine index uploads.
We used to upload the indices when they changed, now we rely on the drivers calling the correct hook to have the values updated from the context storage. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Andres Gomez <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/shaderapi.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 733fee6b9aa..8b19c01b759 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -65,7 +65,6 @@
#define PATH_MAX _MAX_PATH
#endif
-static void _mesa_shader_write_subroutine_index(struct gl_context *ctx, struct gl_linked_shader *sh);
/**
* Return mask of GLSL_x flags by examining the MESA_GLSL env var.
*/
@@ -2574,7 +2573,6 @@ _mesa_GetActiveSubroutineName(GLuint program, GLenum shadertype,
length, name, api_name);
}
-
GLvoid GLAPIENTRY
_mesa_UniformSubroutinesuiv(GLenum shadertype, GLsizei count,
const GLuint *indices)
@@ -2656,8 +2654,6 @@ _mesa_UniformSubroutinesuiv(GLenum shadertype, GLsizei count,
} while(i < count);
FLUSH_VERTICES(ctx, _NEW_PROGRAM_CONSTANTS);
-
- _mesa_shader_write_subroutine_index(ctx, sh);
}
@@ -2868,8 +2864,6 @@ _mesa_shader_init_subroutine_defaults(struct gl_context *ctx,
binding->IndexPtr[i] = find_compat_subroutine(sh, uni->type);
}
-
- _mesa_shader_write_subroutine_index(ctx, sh);
}
void