struct sp_exec_fragment_shader
{
struct sp_fragment_shader base;
- struct tgsi_token *machine_tokens;
};
/** cast wrapper */
static INLINE struct sp_exec_fragment_shader *
-sp_exec_fragment_shader(struct sp_fragment_shader *base)
+sp_exec_fragment_shader(const struct sp_fragment_shader *base)
{
return (struct sp_exec_fragment_shader *) base;
}
static void
exec_prepare( const struct sp_fragment_shader *base,
struct tgsi_exec_machine *machine,
- struct tgsi_sampler *samplers )
+ struct tgsi_sampler **samplers )
{
- struct sp_exec_fragment_shader *spefs =
- sp_exec_fragment_shader(base);
-
/*
* Bind tokens/shader to the interpreter's machine state.
* Avoid redundant binding.
*/
- if (spefs->machine_tokens != base->shader.tokens) {
+ if (machine->Tokens != base->shader.tokens) {
tgsi_exec_machine_bind_shader( machine,
base->shader.tokens,
PIPE_MAX_SAMPLERS,
samplers );
- spefs->machine_tokens = base->shader.tokens;
}
}