summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vs.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-08-26 21:19:05 -0700
committerEric Anholt <eric@anholt.net>2012-09-07 08:29:48 -0700
commit99596cba7828af67bfcd0f2dafcb44b65d39d239 (patch)
tree63e28d5649672a7bace85866af04a046e34b8f5f /src/mesa/drivers/dri/i965/brw_vs.h
parent5bb94f2bc4c7b7bc707d22f3dba9216d794d4393 (diff)
downloadexternal_mesa3d-99596cba7828af67bfcd0f2dafcb44b65d39d239.zip
external_mesa3d-99596cba7828af67bfcd0f2dafcb44b65d39d239.tar.gz
external_mesa3d-99596cba7828af67bfcd0f2dafcb44b65d39d239.tar.bz2
i965: Add functions for comparing two brw_wm/vs_prog_data structs.
Currently, this just avoids comparing all unused parts of param[] and pull_param[], but it's a step toward getting rid of those giant statically sized arrays. v2: Actually use the new function instead of just looking at its address. This required changing the args to const pointers. (review by Kenneth) Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h
index a68a620..e69a713 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.h
+++ b/src/mesa/drivers/dri/i965/brw_vs.h
@@ -123,5 +123,7 @@ bool brw_vs_precompile(struct gl_context *ctx, struct gl_shader_program *prog);
void brw_vs_debug_recompile(struct brw_context *brw,
struct gl_shader_program *prog,
const struct brw_vs_prog_key *key);
+bool brw_vs_prog_data_compare(const void *a, const void *b,
+ int aux_size, const void *key);
#endif