diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2015-06-29 22:07:37 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2015-07-09 17:08:42 -0700 |
commit | 64390967c1abc326875e495f233afec6e685db72 (patch) | |
tree | 26564dd448124a89d2af4d8bceb6ec4590296c0f /src/mesa/drivers/dri/i965/brw_vs.h | |
parent | 13372a0ce746cde6fa6e0aa3c5130e4227f123e0 (diff) | |
download | external_mesa3d-64390967c1abc326875e495f233afec6e685db72.zip external_mesa3d-64390967c1abc326875e495f233afec6e685db72.tar.gz external_mesa3d-64390967c1abc326875e495f233afec6e685db72.tar.bz2 |
i965/vs: Remove 'c'/vs_compile from vec4_vs_visitor.
At this point, the brw_vs_compile structure only contains the key and
gl_vertex_program pointer. We may as well pass and store them directly;
it's simpler and more convenient (key-> instead of vs_compile->key...).
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h index 3a131b0..76bd5f4 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.h +++ b/src/mesa/drivers/dri/i965/brw_vs.h @@ -91,8 +91,9 @@ class vec4_vs_visitor : public vec4_visitor public: vec4_vs_visitor(const struct brw_compiler *compiler, void *log_data, - struct brw_vs_compile *vs_compile, + const struct brw_vs_prog_key *key, struct brw_vs_prog_data *vs_prog_data, + struct gl_vertex_program *vp, struct gl_shader_program *prog, void *mem_ctx, int shader_time_index, @@ -113,8 +114,9 @@ private: dst_reg get_vp_dst_reg(const prog_dst_register &dst); src_reg get_vp_src_reg(const prog_src_register &src); - struct brw_vs_compile * const vs_compile; + const struct brw_vs_prog_key *const key; struct brw_vs_prog_data * const vs_prog_data; + struct gl_vertex_program *const vp; src_reg *vp_temp_regs; src_reg vp_addr_reg; |