[Mesa-dev] [PATCH 10/14] i965: Clean up brw_shader_precompile cruft left from previous commits

Ian Romanick idr at freedesktop.org
Fri Jan 6 16:50:01 PST 2012


From: Ian Romanick <ian.d.romanick at intel.com>

All three of these commits could probably be squashed into one.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/mesa/drivers/dri/i965/brw_shader.cpp |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp
index 634f7e3..fa325ba 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.cpp
+++ b/src/mesa/drivers/dri/i965/brw_shader.cpp
@@ -57,17 +57,6 @@ brw_new_shader_program(struct gl_context *ctx, GLuint name)
    return &prog->base;
 }
 
-/**
- * Performs a compile of the shader stages even when we don't know
- * what non-orthogonal state will be set, in the hope that it reflects
- * the eventual NOS used, and thus allows us to produce link failures.
- */
-bool
-brw_shader_precompile(struct gl_context *ctx, struct gl_shader_program *prog)
-{
-   return true;
-}
-
 GLboolean
 brw_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
 {
@@ -145,9 +134,6 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
       ralloc_free(mem_ctx);
    }
 
-   if (!brw_shader_precompile(ctx, prog))
-      return false;
-
    return true;
 }
 
-- 
1.7.6.4



More information about the mesa-dev mailing list