Lines Matching full:shader
578 /* The shader's compiled to i915 instructions here */
585 i915_fixup_bind_fs_state(struct pipe_context *pipe, void *shader)
589 if (i915->saved_fs == shader)
592 i915->saved_fs = shader;
594 i915->saved_bind_fs_state(pipe, shader);
598 i915_bind_fs_state(struct pipe_context *pipe, void *shader)
602 if (i915->fs == shader)
605 i915->fs = (struct i915_fragment_shader*) shader;
613 void i915_delete_fs_state(struct pipe_context *pipe, void *shader)
615 struct i915_fragment_shader *ifs = (struct i915_fragment_shader *) shader;
645 static void i915_bind_vs_state(struct pipe_context *pipe, void *shader)
649 if (i915->saved_vs == shader)
652 i915->saved_vs = shader;
655 draw_bind_vertex_shader(i915->draw, (struct draw_vertex_shader *) shader);
660 static void i915_delete_vs_state(struct pipe_context *pipe, void *shader)
665 draw_delete_vertex_shader(i915->draw, (struct draw_vertex_shader *) shader);
669 uint shader, uint index,
678 if (shader == PIPE_SHADER_GEOMETRY)
690 struct pipe_resource *old_buf = i915->constants[shader];
692 unsigned old_num = i915->current.num_user_constants[shader];
709 diff = i915->current.num_user_constants[shader] != 0;
712 pipe_resource_reference(&i915->constants[shader], buf);
713 i915->current.num_user_constants[shader] = new_num;
716 i915->dirty |= shader == PIPE_SHADER_VERTEX ? I915_NEW_VS_CONSTANTS : I915_NEW_FS_CONSTANTS;