/third_party/mesa3d/src/mesa/main/ |
D | shaderobj.c | 252 struct gl_shader_program *shProg) in _mesa_reference_shader_program_() argument 255 if (*ptr == shProg) { in _mesa_reference_shader_program_() 277 if (shProg) { in _mesa_reference_shader_program_() 278 p_atomic_inc(&shProg->RefCount); in _mesa_reference_shader_program_() 279 *ptr = shProg; in _mesa_reference_shader_program_() 320 struct gl_shader_program *shProg; in _mesa_new_shader_program() local 321 shProg = rzalloc(NULL, struct gl_shader_program); in _mesa_new_shader_program() 322 if (shProg) { in _mesa_new_shader_program() 323 shProg->Name = name; in _mesa_new_shader_program() 324 shProg->data = _mesa_create_shader_program_data(); in _mesa_new_shader_program() [all …]
|
D | shaderapi.c | 281 struct gl_shader_program *shProg = _mesa_lookup_shader_program(ctx, name); in is_program() local 282 return shProg ? GL_TRUE : GL_FALSE; in is_program() 298 attach_shader(struct gl_context *ctx, struct gl_shader_program *shProg, in attach_shader() argument 301 GLuint n = shProg->NumShaders; in attach_shader() 303 shProg->Shaders = realloc(shProg->Shaders, in attach_shader() 305 if (!shProg->Shaders) { in attach_shader() 311 shProg->Shaders[n] = NULL; /* since realloc() didn't zero the new space */ in attach_shader() 312 _mesa_reference_shader(ctx, &shProg->Shaders[n], sh); in attach_shader() 313 shProg->NumShaders++; in attach_shader() 320 struct gl_shader_program *shProg; in attach_shader_err() local [all …]
|
D | uniforms.c | 66 update_single_shader_texture_used(struct gl_shader_program *shProg, in update_single_shader_texture_used() argument 81 unsigned stages_mask = shProg->data->linked_stages; in update_single_shader_texture_used() 91 struct gl_program *glprog = shProg->_LinkedShaders[stage]->Program; in update_single_shader_texture_used() 93 shProg->SamplersValidated = GL_FALSE; in update_single_shader_texture_used() 100 _mesa_update_shader_textures_used(struct gl_shader_program *shProg, in _mesa_update_shader_textures_used() argument 108 assert(shProg->_LinkedShaders[prog_stage]); in _mesa_update_shader_textures_used() 115 update_single_shader_texture_used(shProg, prog, in _mesa_update_shader_textures_used() 129 update_single_shader_texture_used(shProg, prog, sampler->unit, in _mesa_update_shader_textures_used() 341 struct gl_shader_program *shProg = in _mesa_ProgramUniform1f() local 344 _mesa_uniform(location, 1, &v0, ctx, shProg, GLSL_TYPE_FLOAT, 1); in _mesa_ProgramUniform1f() [all …]
|
D | program_resource.c | 101 struct gl_shader_program *shProg = in _mesa_GetProgramInterfaceiv() local 104 if (!shProg) in _mesa_GetProgramInterfaceiv() 123 for (i = 0, *params = 0; i < shProg->data->NumProgramResourceList; i++) in _mesa_GetProgramInterfaceiv() 124 if (shProg->data->ProgramResourceList[i].Type == programInterface) in _mesa_GetProgramInterfaceiv() 139 for (i = 0, *params = 0; i < shProg->data->NumProgramResourceList; i++) { in _mesa_GetProgramInterfaceiv() 140 if (shProg->data->ProgramResourceList[i].Type != programInterface) in _mesa_GetProgramInterfaceiv() 143 _mesa_program_resource_name_len(&shProg->data->ProgramResourceList[i]); in _mesa_GetProgramInterfaceiv() 150 for (i = 0, *params = 0; i < shProg->data->NumProgramResourceList; i++) { in _mesa_GetProgramInterfaceiv() 151 if (shProg->data->ProgramResourceList[i].Type == programInterface) { in _mesa_GetProgramInterfaceiv() 154 shProg->data->ProgramResourceList[i].Data; in _mesa_GetProgramInterfaceiv() [all …]
|
D | shader_query.cpp | 101 struct gl_shader_program *const shProg, GLuint index, in bind_attrib_location() argument 125 shProg->AttributeBindings->put(index + VERT_ATTRIB_GENERIC0, name); in bind_attrib_location() 139 struct gl_shader_program *const shProg = in _mesa_BindAttribLocation_no_error() local 141 bind_attrib_location(ctx, shProg, index, name, true); in _mesa_BindAttribLocation_no_error() 150 struct gl_shader_program *const shProg = in _mesa_BindAttribLocation() local 152 if (!shProg) in _mesa_BindAttribLocation() 155 bind_attrib_location(ctx, shProg, index, name, false); in _mesa_BindAttribLocation() 164 struct gl_shader_program *shProg; in _mesa_GetActiveAttrib() local 171 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveAttrib"); in _mesa_GetActiveAttrib() 172 if (!shProg) in _mesa_GetActiveAttrib() [all …]
|
D | pipelineobj.c | 211 struct gl_shader_program *shProg, in use_program_stage() argument 215 if (shProg && shProg->_LinkedShaders[stage]) in use_program_stage() 216 prog = shProg->_LinkedShaders[stage]->Program; in use_program_stage() 218 _mesa_use_program(ctx, stage, shProg, prog, pipe); in use_program_stage() 222 use_program_stages(struct gl_context *ctx, struct gl_shader_program *shProg, in use_program_stages() argument 239 use_program_stage(ctx, GL_VERTEX_SHADER, shProg, pipe); in use_program_stages() 242 use_program_stage(ctx, GL_FRAGMENT_SHADER, shProg, pipe); in use_program_stages() 245 use_program_stage(ctx, GL_GEOMETRY_SHADER, shProg, pipe); in use_program_stages() 248 use_program_stage(ctx, GL_TESS_CONTROL_SHADER, shProg, pipe); in use_program_stages() 251 use_program_stage(ctx, GL_TESS_EVALUATION_SHADER, shProg, pipe); in use_program_stages() [all …]
|
D | uniform_query.cpp | 58 struct gl_shader_program *shProg; in _mesa_GetActiveUniform_impl() local 67 shProg = _mesa_lookup_shader_program_err_glthread(ctx, program, glthread, in _mesa_GetActiveUniform_impl() 69 if (!shProg) in _mesa_GetActiveUniform_impl() 72 res = _mesa_program_resource_find_index((struct gl_shader_program *) shProg, in _mesa_GetActiveUniform_impl() 82 _mesa_get_program_resource_name(shProg, GL_UNIFORM, index, maxLength, in _mesa_GetActiveUniform_impl() 86 _mesa_program_resource_prop((struct gl_shader_program *) shProg, in _mesa_GetActiveUniform_impl() 90 _mesa_program_resource_prop((struct gl_shader_program *) shProg, in _mesa_GetActiveUniform_impl() 139 struct gl_shader_program *shProg; in _mesa_GetActiveUniformsiv() local 149 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveUniform"); in _mesa_GetActiveUniformsiv() 150 if (!shProg) in _mesa_GetActiveUniformsiv() [all …]
|
D | shaderapi.h | 61 struct gl_shader_program *shProg); 64 _mesa_active_program(struct gl_context *ctx, struct gl_shader_program *shProg, 74 _mesa_count_active_attribs(struct gl_shader_program *shProg); 77 _mesa_longest_attribute_name_length(struct gl_shader_program *shProg); 264 struct gl_shader_program *shProg, struct gl_program *prog, 288 _mesa_program_resource_index(struct gl_shader_program *shProg, 292 _mesa_program_resource_find_name(struct gl_shader_program *shProg, 297 _mesa_program_resource_find_index(struct gl_shader_program *shProg, 301 _mesa_program_resource_find_active_variable(struct gl_shader_program *shProg, 307 _mesa_get_program_resource_name(struct gl_shader_program *shProg, [all …]
|
D | shaderobj.h | 71 struct gl_shader_program *shProg); 81 struct gl_shader_program *shProg) in _mesa_reference_shader_program() argument 83 if (*ptr != shProg) in _mesa_reference_shader_program() 84 _mesa_reference_shader_program_(ctx, ptr, shProg); in _mesa_reference_shader_program() 116 struct gl_shader_program *shProg); 120 struct gl_shader_program *shProg); 124 struct gl_shader_program *shProg);
|
D | transformfeedback.c | 69 struct gl_shader_program *shProg) in _mesa_transform_feedback_is_using_program() argument 71 if (!shProg->last_vert_prog) in _mesa_transform_feedback_is_using_program() 76 callback_data.prog = shProg->last_vert_prog; in _mesa_transform_feedback_is_using_program() 874 struct gl_shader_program *shProg, GLsizei count, in transform_feedback_varyings() argument 880 for (i = 0; i < (GLint) shProg->TransformFeedback.NumVarying; i++) { in transform_feedback_varyings() 881 free(shProg->TransformFeedback.VaryingNames[i]); in transform_feedback_varyings() 883 free(shProg->TransformFeedback.VaryingNames); in transform_feedback_varyings() 886 shProg->TransformFeedback.VaryingNames = in transform_feedback_varyings() 889 if (!shProg->TransformFeedback.VaryingNames) { in transform_feedback_varyings() 896 shProg->TransformFeedback.VaryingNames[i] = strdup(varyings[i]); in transform_feedback_varyings() [all …]
|
D | shared.c | 234 struct gl_shader_program *shProg = (struct gl_shader_program *) data; in free_shader_program_data_cb() local 236 if (shProg->Type == GL_SHADER_PROGRAM_MESA) { in free_shader_program_data_cb() 237 _mesa_free_shader_program_data(ctx, shProg); in free_shader_program_data_cb() 255 struct gl_shader_program *shProg = (struct gl_shader_program *) data; in delete_shader_cb() local 256 assert(shProg->Type == GL_SHADER_PROGRAM_MESA); in delete_shader_cb() 257 _mesa_delete_shader_program(ctx, shProg); in delete_shader_cb()
|
D | transformfeedback.h | 158 struct gl_shader_program *shProg);
|
D | uniforms.h | 499 _mesa_update_shader_textures_used(struct gl_shader_program *shProg, 503 _mesa_sampler_uniforms_are_valid(const struct gl_shader_program *shProg,
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_link.cpp | 225 brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg) in brw_link_shader() argument 232 if (shProg->data->LinkStatus == LINKING_SKIPPED) in brw_link_shader() 235 for (stage = 0; stage < ARRAY_SIZE(shProg->_LinkedShaders); stage++) { in brw_link_shader() 236 struct gl_linked_shader *shader = shProg->_LinkedShaders[stage]; in brw_link_shader() 244 process_glsl_ir(brw, shProg, shader); in brw_link_shader() 246 _mesa_copy_linked_program_data(shProg, shader); in brw_link_shader() 255 _mesa_shader_stage_to_string(shader->Stage), shProg->Name); in brw_link_shader() 260 prog->nir = brw_create_nir(brw, shProg, prog, (gl_shader_stage) stage, in brw_link_shader() 271 if (shProg->data->spirv) { in brw_link_shader() 275 if (!gl_nir_link_spirv(ctx, shProg, &opts)) in brw_link_shader() [all …]
|
D | brw_program_binary.c | 240 struct gl_shader_program *shProg, in brw_deserialize_program_binary() argument
|
/third_party/mesa3d/src/compiler/glsl/ |
D | standalone_scaffolding.cpp | 151 struct gl_shader_program *shProg) in _mesa_clear_shader_program_data() argument 154 if (shProg->_LinkedShaders[i] != NULL) { in _mesa_clear_shader_program_data() 155 _mesa_delete_linked_shader(ctx, shProg->_LinkedShaders[i]); in _mesa_clear_shader_program_data() 156 shProg->_LinkedShaders[i] = NULL; in _mesa_clear_shader_program_data() 160 shProg->data->NumUniformStorage = 0; in _mesa_clear_shader_program_data() 161 shProg->data->UniformStorage = NULL; in _mesa_clear_shader_program_data() 162 shProg->NumUniformRemapTable = 0; in _mesa_clear_shader_program_data() 163 shProg->UniformRemapTable = NULL; in _mesa_clear_shader_program_data() 164 shProg->UniformHash = NULL; in _mesa_clear_shader_program_data() 166 ralloc_free(shProg->data->InfoLog); in _mesa_clear_shader_program_data() [all …]
|
D | gl_nir_linker.c | 96 create_shader_variable(struct gl_shader_program *shProg, in create_shader_variable() argument 106 struct gl_shader_variable *out = rzalloc(shProg, in create_shader_variable() 116 out->name = ralloc_strdup(shProg, "gl_VertexID"); in create_shader_variable() 121 out->name = ralloc_strdup(shProg, "gl_TessLevelOuter"); in create_shader_variable() 127 out->name = ralloc_strdup(shProg, "gl_TessLevelInner"); in create_shader_variable() 130 out->name = ralloc_strdup(shProg, name); in create_shader_variable() 175 struct gl_shader_program *shProg, in add_shader_variable() argument 219 name = ralloc_asprintf(shProg, "%s.%s", interface_name, name); in add_shader_variable() 243 char *field_name = ralloc_asprintf(shProg, "%s.%s", name, field->name); in add_shader_variable() 244 if (!add_shader_variable(ctx, shProg, resource_set, in add_shader_variable() [all …]
|
D | linker.cpp | 3664 build_stageref(struct gl_shader_program *shProg, const char *name, in build_stageref() argument 3675 struct gl_linked_shader *sh = shProg->_LinkedShaders[i]; in build_stageref() 3719 create_shader_variable(struct gl_shader_program *shProg, in create_shader_variable() argument 3729 gl_shader_variable *out = rzalloc(shProg, struct gl_shader_variable); in create_shader_variable() 3738 out->name = ralloc_strdup(shProg, "gl_VertexID"); in create_shader_variable() 3743 out->name = ralloc_strdup(shProg, "gl_TessLevelOuter"); in create_shader_variable() 3749 out->name = ralloc_strdup(shProg, "gl_TessLevelInner"); in create_shader_variable() 3752 out->name = ralloc_strdup(shProg, name); in create_shader_variable() 3796 struct gl_shader_program *shProg, in add_shader_variable() argument 3839 name = ralloc_asprintf(shProg, "%s.%s", interface_name, name); in add_shader_variable() [all …]
|
D | serialize.cpp | 313 write_xfb(struct blob *metadata, struct gl_shader_program *shProg) in write_xfb() argument 315 struct gl_program *prog = shProg->last_vert_prog; in write_xfb() 327 blob_write_uint32(metadata, shProg->TransformFeedback.BufferMode); in write_xfb() 328 blob_write_bytes(metadata, shProg->TransformFeedback.BufferStride, in write_xfb() 329 sizeof(shProg->TransformFeedback.BufferStride)); in write_xfb() 330 blob_write_uint32(metadata, shProg->TransformFeedback.NumVarying); in write_xfb() 331 for (unsigned i = 0; i < shProg->TransformFeedback.NumVarying; i++) in write_xfb() 332 blob_write_string(metadata, shProg->TransformFeedback.VaryingNames[i]); in write_xfb() 356 read_xfb(struct blob_reader *metadata, struct gl_shader_program *shProg) in read_xfb() argument 363 if (shProg->TransformFeedback.VaryingNames) { in read_xfb() [all …]
|
D | program.h | 49 struct gl_shader_program *shProg,
|
D | link_uniforms.cpp | 193 calculate_array_size_and_stride(struct gl_shader_program *shProg, in calculate_array_size_and_stride() argument 206 shProg->data->ShaderStorageBlocks[block_index].Name : in calculate_array_size_and_stride() 207 shProg->data->UniformBlocks[block_index].Name); in calculate_array_size_and_stride() 213 linker_error(shProg, "Out of memory during linking.\n"); in calculate_array_size_and_stride() 220 linker_error(shProg, "Out of memory during linking.\n"); in calculate_array_size_and_stride() 226 const gl_linked_shader *sh = shProg->_LinkedShaders[i]; in calculate_array_size_and_stride()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_shader_cache.h | 46 struct gl_shader_program *shProg, 51 struct gl_shader_program *shProg, 59 struct gl_shader_program *shProg, 64 struct gl_shader_program *shProg,
|
D | st_shader_cache.c | 172 struct gl_shader_program *shProg, in st_deserialise_ir_program() argument 185 _mesa_ensure_and_associate_uniform_storage(ctx, shProg, prog, 16); in st_deserialise_ir_program() 216 stp->shader_program = shProg; in st_deserialise_ir_program() 280 struct gl_shader_program *shProg, in st_serialise_tgsi_program_binary() argument 288 struct gl_shader_program *shProg, in st_deserialise_tgsi_program() argument 291 st_deserialise_ir_program(ctx, shProg, prog, false); in st_deserialise_tgsi_program() 302 struct gl_shader_program *shProg, in st_serialise_nir_program_binary() argument 310 struct gl_shader_program *shProg, in st_deserialise_nir_program() argument 313 st_deserialise_ir_program(ctx, shProg, prog, true); in st_deserialise_nir_program()
|
/third_party/node/deps/npm/node_modules/cmd-shim/ |
D | index.js | 82 , shProg = prog && prog.split("\\").join("/") 84 , pwshProg = shProg && "\"" + shProg + "$exe\"" 91 shProg = "\"$basedir/" + shTarget + "\"" 92 pwshProg = shProg 185 + " " + variables + shProg + " " + args + " " + shTarget + " \"$@\"\n" 191 + shProg + " " + args + " " + shTarget + " \"$@\"\n"
|
/third_party/mesa3d/docs/relnotes/ |
D | 10.0.4.rst | 41 \`shProg->Shaders[j]->Type == 0x8B31 \|\| shProg->Shaders[j]->Type ==
|