Home
last modified time | relevance | path

Searched refs:shProg (Results 1 – 23 of 23) sorted by relevance

/third_party/mesa3d/src/mesa/main/
Dshaderobj.c247 struct gl_shader_program *shProg) in _mesa_reference_shader_program_() argument
250 if (*ptr == shProg) { in _mesa_reference_shader_program_()
272 if (shProg) { in _mesa_reference_shader_program_()
273 p_atomic_inc(&shProg->RefCount); in _mesa_reference_shader_program_()
274 *ptr = shProg; in _mesa_reference_shader_program_()
315 struct gl_shader_program *shProg; in _mesa_new_shader_program() local
316 shProg = rzalloc(NULL, struct gl_shader_program); in _mesa_new_shader_program()
317 if (shProg) { in _mesa_new_shader_program()
318 shProg->Name = name; in _mesa_new_shader_program()
319 shProg->data = _mesa_create_shader_program_data(); in _mesa_new_shader_program()
[all …]
Dshaderapi.c310 struct gl_shader_program *shProg = _mesa_lookup_shader_program(ctx, name); in is_program() local
311 return shProg ? GL_TRUE : GL_FALSE; in is_program()
327 attach_shader(struct gl_context *ctx, struct gl_shader_program *shProg, in attach_shader() argument
330 GLuint n = shProg->NumShaders; in attach_shader()
332 shProg->Shaders = realloc(shProg->Shaders, in attach_shader()
334 if (!shProg->Shaders) { in attach_shader()
340 shProg->Shaders[n] = NULL; /* since realloc() didn't zero the new space */ in attach_shader()
341 _mesa_reference_shader(ctx, &shProg->Shaders[n], sh); in attach_shader()
342 shProg->NumShaders++; in attach_shader()
349 struct gl_shader_program *shProg; in attach_shader_err() local
[all …]
Duniforms.c69 update_single_shader_texture_used(struct gl_shader_program *shProg, in update_single_shader_texture_used() argument
84 unsigned stages_mask = shProg->data->linked_stages; in update_single_shader_texture_used()
94 struct gl_program *glprog = shProg->_LinkedShaders[stage]->Program; in update_single_shader_texture_used()
96 shProg->SamplersValidated = GL_FALSE; in update_single_shader_texture_used()
103 _mesa_update_shader_textures_used(struct gl_shader_program *shProg, in _mesa_update_shader_textures_used() argument
111 assert(shProg->_LinkedShaders[prog_stage]); in _mesa_update_shader_textures_used()
118 update_single_shader_texture_used(shProg, prog, in _mesa_update_shader_textures_used()
132 update_single_shader_texture_used(shProg, prog, sampler->unit, in _mesa_update_shader_textures_used()
344 struct gl_shader_program *shProg = in _mesa_ProgramUniform1f() local
347 _mesa_uniform(location, 1, &v0, ctx, shProg, GLSL_TYPE_FLOAT, 1); in _mesa_ProgramUniform1f()
[all …]
Dshader_query.cpp103 struct gl_shader_program *const shProg, GLuint index, in bind_attrib_location() argument
127 shProg->AttributeBindings->put(index + VERT_ATTRIB_GENERIC0, name); in bind_attrib_location()
141 struct gl_shader_program *const shProg = in _mesa_BindAttribLocation_no_error() local
143 bind_attrib_location(ctx, shProg, index, name, true); in _mesa_BindAttribLocation_no_error()
152 struct gl_shader_program *const shProg = in _mesa_BindAttribLocation() local
154 if (!shProg) in _mesa_BindAttribLocation()
157 bind_attrib_location(ctx, shProg, index, name, false); in _mesa_BindAttribLocation()
166 struct gl_shader_program *shProg; in _mesa_GetActiveAttrib() local
173 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveAttrib"); in _mesa_GetActiveAttrib()
174 if (!shProg) in _mesa_GetActiveAttrib()
[all …]
Dshaderapi.h64 struct gl_shader_program *shProg);
67 _mesa_active_program(struct gl_context *ctx, struct gl_shader_program *shProg,
77 _mesa_count_active_attribs(struct gl_shader_program *shProg);
80 _mesa_longest_attribute_name_length(struct gl_shader_program *shProg);
88 struct gl_shader_program *shProg, struct gl_program *prog,
114 _mesa_program_resource_index(struct gl_shader_program *shProg,
118 _mesa_program_resource_find_name(struct gl_shader_program *shProg,
123 _mesa_program_resource_find_index(struct gl_shader_program *shProg,
127 _mesa_program_resource_find_active_variable(struct gl_shader_program *shProg,
133 _mesa_get_program_resource_name(struct gl_shader_program *shProg,
[all …]
Dprogram_resource.c100 struct gl_shader_program *shProg = in _mesa_GetProgramInterfaceiv() local
103 if (!shProg) in _mesa_GetProgramInterfaceiv()
119 _mesa_get_program_interfaceiv(shProg, programInterface, pname, params); in _mesa_GetProgramInterfaceiv()
158 struct gl_shader_program *shProg = in _mesa_GetProgramResourceIndex() local
161 if (!shProg || !name) in _mesa_GetProgramResourceIndex()
199 res = _mesa_program_resource_find_name(shProg, programInterface, name, in _mesa_GetProgramResourceIndex()
204 return _mesa_program_resource_index(shProg, res); in _mesa_GetProgramResourceIndex()
228 struct gl_shader_program *shProg = in _mesa_GetProgramResourceName() local
232 if (!shProg || !name) in _mesa_GetProgramResourceName()
243 _mesa_get_program_resource_name(shProg, programInterface, index, bufSize, in _mesa_GetProgramResourceName()
[all …]
Dpipelineobj.c212 struct gl_shader_program *shProg, in use_program_stage() argument
216 if (shProg && shProg->_LinkedShaders[stage]) in use_program_stage()
217 prog = shProg->_LinkedShaders[stage]->Program; in use_program_stage()
219 _mesa_use_program(ctx, stage, shProg, prog, pipe); in use_program_stage()
223 use_program_stages(struct gl_context *ctx, struct gl_shader_program *shProg, in use_program_stages() argument
240 use_program_stage(ctx, GL_VERTEX_SHADER, shProg, pipe); in use_program_stages()
243 use_program_stage(ctx, GL_FRAGMENT_SHADER, shProg, pipe); in use_program_stages()
246 use_program_stage(ctx, GL_GEOMETRY_SHADER, shProg, pipe); in use_program_stages()
249 use_program_stage(ctx, GL_TESS_CONTROL_SHADER, shProg, pipe); in use_program_stages()
252 use_program_stage(ctx, GL_TESS_EVALUATION_SHADER, shProg, pipe); in use_program_stages()
[all …]
Duniform_query.cpp59 struct gl_shader_program *shProg; in _mesa_GetActiveUniform_impl() local
68 shProg = _mesa_lookup_shader_program_err_glthread(ctx, program, glthread, in _mesa_GetActiveUniform_impl()
70 if (!shProg) in _mesa_GetActiveUniform_impl()
73 res = _mesa_program_resource_find_index((struct gl_shader_program *) shProg, in _mesa_GetActiveUniform_impl()
83 _mesa_get_program_resource_name(shProg, GL_UNIFORM, index, maxLength, in _mesa_GetActiveUniform_impl()
87 _mesa_program_resource_prop((struct gl_shader_program *) shProg, in _mesa_GetActiveUniform_impl()
91 _mesa_program_resource_prop((struct gl_shader_program *) shProg, in _mesa_GetActiveUniform_impl()
140 struct gl_shader_program *shProg; in _mesa_GetActiveUniformsiv() local
150 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveUniform"); in _mesa_GetActiveUniformsiv()
151 if (!shProg) in _mesa_GetActiveUniformsiv()
[all …]
Dshaderobj.h71 struct gl_shader_program *shProg);
80 struct gl_shader_program *shProg) in _mesa_reference_shader_program() argument
82 if (*ptr != shProg) in _mesa_reference_shader_program()
83 _mesa_reference_shader_program_(ctx, ptr, shProg); in _mesa_reference_shader_program()
115 struct gl_shader_program *shProg);
119 struct gl_shader_program *shProg);
123 struct gl_shader_program *shProg);
Dtransformfeedback.c73 struct gl_shader_program *shProg) in _mesa_transform_feedback_is_using_program() argument
75 if (!shProg->last_vert_prog) in _mesa_transform_feedback_is_using_program()
80 callback_data.prog = shProg->last_vert_prog; in _mesa_transform_feedback_is_using_program()
870 struct gl_shader_program *shProg, GLsizei count, in transform_feedback_varyings() argument
876 for (i = 0; i < (GLint) shProg->TransformFeedback.NumVarying; i++) { in transform_feedback_varyings()
877 free(shProg->TransformFeedback.VaryingNames[i]); in transform_feedback_varyings()
879 free(shProg->TransformFeedback.VaryingNames); in transform_feedback_varyings()
882 shProg->TransformFeedback.VaryingNames = in transform_feedback_varyings()
885 if (!shProg->TransformFeedback.VaryingNames) { in transform_feedback_varyings()
892 shProg->TransformFeedback.VaryingNames[i] = strdup(varyings[i]); in transform_feedback_varyings()
[all …]
Dshared.c236 struct gl_shader_program *shProg = (struct gl_shader_program *) data; in free_shader_program_data_cb() local
238 if (shProg->Type == GL_SHADER_PROGRAM_MESA) { in free_shader_program_data_cb()
239 _mesa_free_shader_program_data(ctx, shProg); in free_shader_program_data_cb()
257 struct gl_shader_program *shProg = (struct gl_shader_program *) data; in delete_shader_cb() local
258 assert(shProg->Type == GL_SHADER_PROGRAM_MESA); in delete_shader_cb()
259 _mesa_delete_shader_program(ctx, shProg); in delete_shader_cb()
Duniforms.h83 _mesa_update_shader_textures_used(struct gl_shader_program *shProg,
87 _mesa_sampler_uniforms_are_valid(const struct gl_shader_program *shProg,
Ddd.h256 struct gl_shader_program *shProg,
260 struct gl_shader_program *shProg,
Dtransformfeedback.h88 struct gl_shader_program *shProg);
/third_party/mesa3d/src/compiler/glsl/
Dstandalone_scaffolding.cpp151 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 …]
Dgl_nir_linker.c221 create_shader_variable(struct gl_shader_program *shProg, in create_shader_variable() argument
231 struct gl_shader_variable *out = rzalloc(shProg, in create_shader_variable()
241 out->name.string = ralloc_strdup(shProg, "gl_VertexID"); in create_shader_variable()
246 out->name.string = ralloc_strdup(shProg, "gl_TessLevelOuter"); in create_shader_variable()
252 out->name.string = ralloc_strdup(shProg, "gl_TessLevelInner"); in create_shader_variable()
255 out->name.string = ralloc_strdup(shProg, name); in create_shader_variable()
302 struct gl_shader_program *shProg, in add_shader_variable() argument
346 name = ralloc_asprintf(shProg, "%s.%s", interface_name, name); in add_shader_variable()
370 char *field_name = ralloc_asprintf(shProg, "%s.%s", name, field->name); in add_shader_variable()
371 if (!add_shader_variable(consts, shProg, resource_set, in add_shader_variable()
[all …]
Dserialize.cpp315 write_xfb(struct blob *metadata, struct gl_shader_program *shProg) in write_xfb() argument
317 struct gl_program *prog = shProg->last_vert_prog; in write_xfb()
329 blob_write_uint32(metadata, shProg->TransformFeedback.BufferMode); in write_xfb()
330 blob_write_bytes(metadata, shProg->TransformFeedback.BufferStride, in write_xfb()
331 sizeof(shProg->TransformFeedback.BufferStride)); in write_xfb()
332 blob_write_uint32(metadata, shProg->TransformFeedback.NumVarying); in write_xfb()
333 for (unsigned i = 0; i < shProg->TransformFeedback.NumVarying; i++) in write_xfb()
334 blob_write_string(metadata, shProg->TransformFeedback.VaryingNames[i]); in write_xfb()
358 read_xfb(struct blob_reader *metadata, struct gl_shader_program *shProg) in read_xfb() argument
365 if (shProg->TransformFeedback.VaryingNames) { in read_xfb()
[all …]
Dgl_nir_linker.h93 struct gl_shader_program *shProg,
/third_party/node/deps/npm/node_modules/cmd-shim/
Dindex.js82 , 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/src/mesa/state_tracker/
Dst_shader_cache.h45 struct gl_shader_program *shProg,
50 struct gl_shader_program *shProg,
58 struct gl_shader_program *shProg,
63 struct gl_shader_program *shProg,
Dst_shader_cache.c142 struct gl_shader_program *shProg, in st_deserialise_nir_program() argument
155 _mesa_ensure_and_associate_uniform_storage(ctx, shProg, prog, 16); in st_deserialise_nir_program()
184 prog->shader_program = shProg; in st_deserialise_nir_program()
238 struct gl_shader_program *shProg, in st_serialise_nir_program_binary() argument
Dst_program.c1165 struct gl_shader_program *shProg = (struct gl_shader_program *) data; in destroy_shader_program_variants_cb() local
1168 for (i = 0; i < ARRAY_SIZE(shProg->_LinkedShaders); i++) { in destroy_shader_program_variants_cb()
1169 if (shProg->_LinkedShaders[i]) in destroy_shader_program_variants_cb()
1170 destroy_program_variants(st, shProg->_LinkedShaders[i]->Program); in destroy_shader_program_variants_cb()
/third_party/mesa3d/docs/relnotes/
D10.0.4.rst41 \`shProg->Shaders[j]->Type == 0x8B31 \|\| shProg->Shaders[j]->Type ==