summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vs.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2014-11-23 23:26:00 -0800
committerKenneth Graunke <kenneth@whitecape.org>2014-11-24 15:30:09 -0800
commit62b425448ca92f568a571e656133e6d234434b4c (patch)
tree4221eaee3a761689b9f96a2322429a9a131544f3 /src/mesa/drivers/dri/i965/brw_vs.h
parentd54925df9c9c024c06b7d54334d5e7a1035bcaf8 (diff)
downloadexternal_mesa3d-62b425448ca92f568a571e656133e6d234434b4c.zip
external_mesa3d-62b425448ca92f568a571e656133e6d234434b4c.tar.gz
external_mesa3d-62b425448ca92f568a571e656133e6d234434b4c.tar.bz2
i965: Pass gl_program pointers into precompile functions.
We'd like to do precompiling for ARB vertex and fragment programs, which only have gl_program structures - gl_shader_program is NULL. This patch makes the various precompile functions take a gl_program parameter directly, rather than accessing it via gl_shader_program. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h
index 97308a7..77792d9 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.h
+++ b/src/mesa/drivers/dri/i965/brw_vs.h
@@ -89,7 +89,9 @@ const unsigned *brw_vs_emit(struct brw_context *brw,
struct brw_vs_prog_data *prog_data,
void *mem_ctx,
unsigned *program_size);
-bool brw_vs_precompile(struct gl_context *ctx, struct gl_shader_program *prog);
+bool brw_vs_precompile(struct gl_context *ctx,
+ struct gl_shader_program *shader_prog,
+ struct gl_program *prog);
void brw_vs_debug_recompile(struct brw_context *brw,
struct gl_shader_program *prog,
const struct brw_vs_prog_key *key);