Lines Matching defs:shader
106 * This determines which states will be updated when the shader is bound.
212 unreachable("unhandled shader stage");
218 * Delete a shader variant. Note the caller must unlink the variant from
227 /* Draw shader. */
230 /* The shader's context matches the calling context, or we
253 unreachable("bad shader type in delete_basic_variant");
256 /* We can't delete a shader with a context different from the one
272 /* Unbind the shader in cso_context and re-bind in st/mesa. */
299 unreachable("invalid shader type");
336 * shader as ir->ir.nir, so it will be freed by _mesa_delete_program().
367 /* st_nir_assign_vs_in_locations requires correct shader info. */
428 * attrib_to_index is an optional mapping from a vertex attrib to a shader
494 * Creates a driver shader from a NIR shader. Takes ownership of the
532 struct pipe_shader_state *shader;
535 shader = pipe->create_vs_state(pipe, state);
538 shader = pipe->create_tcs_state(pipe, state);
541 shader = pipe->create_tes_state(pipe, state);
544 shader = pipe->create_gs_state(pipe, state);
547 shader = pipe->create_fs_state(pipe, state);
559 shader = pipe->create_compute_state(pipe, &cs);
563 unreachable("unsupported shader stage");
570 return shader;
585 * shader is bound.
617 /* The first shader variant takes ownership of NIR, so that there is
618 * no cloning. Additional shader variants are always generated from
707 /* if flag is set, shader must export psiz */
794 "Compiling %s shader variant (%s%s%s%s%s%s)",
826 * Translate a non-GLSL Mesa fragment shader into a NIR shader.
833 * shader is bound.
933 nir_shader *shader = state.ir.nir;
934 nir_foreach_shader_in_variable(var, shader)
1090 "Compiling fragment shader variant (%s%s%s%s%s%s%s%s%s%s%s%s%s)",
1153 * Callback for _mesa_HashWalk. Free all the shader's program variants
1160 struct gl_shader *shader = (struct gl_shader *) data;
1162 switch (shader->Type) {
1253 * Compile one shader variant.
1345 * all shader variants and corresponding gallium shaders when this happens.