Lines Matching defs:shader

60  * Precomputes the TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC array for the shader.
62 * A shader can have 16 of these specs, and each one of them can write up to
101 /* Set the coordinate shader up to output the
126 /* We need the offset from the coordinate shader's VPM
144 /* If point size is being written by the shader, then
200 * Precompiles a shader variant at shader state creation time if
201 * V3D_DEBUG=precompile is set. Used for shader-db
202 * (https://gitlab.freedesktop.org/mesa/shader-db)
242 /* Compile GS bin shader: only position (XXX: include TF) */
267 /* Compile VS bin shader: only position (XXX: include TF) */
293 /* The backend takes ownership of the NIR shader on state
386 struct v3d_compiled_shader *shader = NULL;
389 shader = v3d_disk_cache_retrieve(v3d, key);
392 if (!shader) {
393 shader = rzalloc(NULL, struct v3d_compiled_shader);
400 &shader->prog_data.base, s,
404 ralloc_steal(shader, shader->prog_data.base);
408 qpu_insts, &shader->offset, &shader->resource);
412 v3d_disk_cache_store(v3d, key, shader, qpu_insts, shader_size);
418 v3d_set_shader_uniform_dirty_flags(shader);
422 dup_key = ralloc_size(shader, key_size);
424 _mesa_hash_table_insert(ht, dup_key, shader);
427 if (shader->prog_data.base->spill_size >
431 * Even at minimum threadcount in a particular shader, that
435 shader->prog_data.base->spill_size);
441 shader->prog_data.base->spill_size;
444 return shader;
448 v3d_free_compiled_shader(struct v3d_compiled_shader *shader)
450 pipe_resource_reference(&shader->resource, NULL);
451 ralloc_free(shader);
586 * buffers there are means that the shader compile needs to
701 /* The last bin-mode shader in the geometry pipeline only outputs
928 struct v3d_compiled_shader *shader = entry->data;
933 if (v3d->prog.fs == shader)
935 if (v3d->prog.vs == shader)
937 if (v3d->prog.cs == shader)
939 if (v3d->prog.compute == shader)
943 v3d_free_compiled_shader(shader);
1036 struct v3d_compiled_shader *shader = entry->data;
1037 v3d_free_compiled_shader(shader);