Lines Matching refs:shader
46 * Create a new fragment shader variant.
54 struct pipe_shader_state *stipple_fs = NULL, *curfs = &fs->shader;
59 /* get new shader that implements polygon stippling */
80 &fs->shader);
132 state->shader.tokens = tgsi_dup_tokens(templ->tokens);
136 &state->shader);
138 FREE((void *) state->shader.tokens);
160 /* This depends on the current fragment shader and must always be
200 FREE((void *) state->shader.tokens);
216 /* copy shader tokens, the ones passed in will go away.
218 state->shader.tokens = tgsi_dup_tokens(templ->tokens);
219 if (state->shader.tokens == NULL)
232 FREE( (void *)state->shader.tokens );
262 FREE( (void *)state->shader.tokens );
282 /* copy shader tokens, the ones passed in will go away.
284 state->shader.tokens = tgsi_dup_tokens(templ->tokens);
285 if (state->shader.tokens == NULL)
298 FREE( (void *)state->shader.tokens );
331 FREE((void *) state->shader.tokens);
338 uint shader, uint index,
356 assert(shader < PIPE_SHADER_TYPES);
361 pipe_resource_reference(&softpipe->constants[shader][index], constants);
363 if (shader == PIPE_SHADER_VERTEX || shader == PIPE_SHADER_GEOMETRY) {
364 draw_set_mapped_constant_buffer(softpipe->draw, shader, index, data, size);
367 softpipe->mapped_constants[shader][index] = data;
368 softpipe->const_buffer_size[shader][index] = size;