diff options
author | Timothy Arceri <[email protected]> | 2016-11-04 13:51:59 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-12-30 10:57:17 +1100 |
commit | 194537ebe44cfcd6d72a98d0c2118f10a9e58deb (patch) | |
tree | 654fcbd5974d9fc5f063096c907c28864767af1c /src/compiler | |
parent | 718a0cf49f88ff456582366db45c31f881561ebf (diff) |
mesa/glsl/i965: remove Driver.NewShader()
After removing brw_shader in the previous commit this is no longer
needed.
V2: remove use in src/compiler/glsl/test_optpass.cpp
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/linker.cpp | 3 | ||||
-rw-r--r-- | src/compiler/glsl/standalone.cpp | 1 | ||||
-rw-r--r-- | src/compiler/glsl/standalone_scaffolding.cpp | 13 | ||||
-rw-r--r-- | src/compiler/glsl/standalone_scaffolding.h | 3 | ||||
-rw-r--r-- | src/compiler/glsl/test_optpass.cpp | 1 |
5 files changed, 2 insertions, 19 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 3726f669730..c6bf3b16736 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -2194,7 +2194,8 @@ link_intrastage_shaders(void *mem_ctx, return NULL; } - gl_linked_shader *linked = ctx->Driver.NewShader(shader_list[0]->Stage); + gl_linked_shader *linked = rzalloc(NULL, struct gl_linked_shader); + linked->Stage = shader_list[0]->Stage; /* Create program and attach it to the linked shader */ struct gl_program *gl_prog = diff --git a/src/compiler/glsl/standalone.cpp b/src/compiler/glsl/standalone.cpp index 00c9500d871..69d86c705fc 100644 --- a/src/compiler/glsl/standalone.cpp +++ b/src/compiler/glsl/standalone.cpp @@ -330,7 +330,6 @@ initialize_context(struct gl_context *ctx, gl_api api) ctx->Const.MaxUserAssignableUniformLocations = 4 * MESA_SHADER_STAGES * MAX_UNIFORMS; - ctx->Driver.NewShader = _mesa_new_linked_shader; ctx->Driver.NewProgram = new_program; } diff --git a/src/compiler/glsl/standalone_scaffolding.cpp b/src/compiler/glsl/standalone_scaffolding.cpp index 11134269c90..9160ba03e90 100644 --- a/src/compiler/glsl/standalone_scaffolding.cpp +++ b/src/compiler/glsl/standalone_scaffolding.cpp @@ -90,19 +90,6 @@ _mesa_new_shader(GLuint name, gl_shader_stage stage) return shader; } -struct gl_linked_shader * -_mesa_new_linked_shader(gl_shader_stage stage) -{ - struct gl_linked_shader *shader; - - assert(stage == MESA_SHADER_FRAGMENT || stage == MESA_SHADER_VERTEX); - shader = rzalloc(NULL, struct gl_linked_shader); - if (shader) { - shader->Stage = stage; - } - return shader; -} - GLbitfield _mesa_program_state_flags(const gl_state_index state[STATE_LENGTH]) { diff --git a/src/compiler/glsl/standalone_scaffolding.h b/src/compiler/glsl/standalone_scaffolding.h index 0e77f720260..790ff4a251c 100644 --- a/src/compiler/glsl/standalone_scaffolding.h +++ b/src/compiler/glsl/standalone_scaffolding.h @@ -49,9 +49,6 @@ _mesa_reference_program_(struct gl_context *ctx, struct gl_program **ptr, extern "C" struct gl_shader * _mesa_new_shader(GLuint name, gl_shader_stage stage); -extern "C" struct gl_linked_shader * -_mesa_new_linked_shader(gl_shader_stage stage); - extern "C" void _mesa_delete_shader(struct gl_context *ctx, struct gl_shader *sh); diff --git a/src/compiler/glsl/test_optpass.cpp b/src/compiler/glsl/test_optpass.cpp index 4d0bcc2f6cb..c6e97888f69 100644 --- a/src/compiler/glsl/test_optpass.cpp +++ b/src/compiler/glsl/test_optpass.cpp @@ -200,7 +200,6 @@ int test_optpass(int argc, char **argv) struct gl_context *ctx = &local_ctx; initialize_context_to_defaults(ctx, API_OPENGL_COMPAT); - ctx->Driver.NewShader = _mesa_new_linked_shader; ir_variable::temporaries_allocate_names = true; struct gl_shader *shader = rzalloc(NULL, struct gl_shader); |