Home
last modified time | relevance | path

Searched refs:shader_type (Results 1 - 25 of 82) sorted by relevance

1234

/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_atom_constbuf.c55 st_unbind_unused_cb0(struct st_context *st, enum pipe_shader_type shader_type) in st_unbind_unused_cb0() argument
57 if (st->state.constbuf0_enabled_shader_mask & (1 << shader_type)) { in st_unbind_unused_cb0()
60 pipe->set_constant_buffer(pipe, shader_type, 0, false, NULL); in st_unbind_unused_cb0()
61 st->state.constbuf0_enabled_shader_mask &= ~(1 << shader_type); in st_unbind_unused_cb0()
72 enum pipe_shader_type shader_type = pipe_shader_type_from_mesa(stage); in st_upload_constants() local
74 st_unbind_unused_cb0(st, shader_type); in st_upload_constants()
80 assert(shader_type == PIPE_SHADER_VERTEX || in st_upload_constants()
81 shader_type == PIPE_SHADER_FRAGMENT || in st_upload_constants()
82 shader_type == PIPE_SHADER_GEOMETRY || in st_upload_constants()
83 shader_type in st_upload_constants()
262 st_bind_ubos(struct st_context *st, struct gl_program *prog, enum pipe_shader_type shader_type) st_bind_ubos() argument
[all...]
H A Dst_atom_storagebuf.c44 enum pipe_shader_type shader_type) in st_bind_ssbos()
77 st->pipe->set_shader_buffers(st->pipe, shader_type, 0, in st_bind_ssbos()
84 num_ssbos += st->last_used_atomic_bindings[shader_type]; in st_bind_ssbos()
85 if (st->last_num_ssbos[shader_type] > num_ssbos) { in st_bind_ssbos()
87 st->pipe, shader_type, in st_bind_ssbos()
89 st->last_num_ssbos[shader_type] - num_ssbos, in st_bind_ssbos()
91 st->last_num_ssbos[shader_type] = num_ssbos; in st_bind_ssbos()
43 st_bind_ssbos(struct st_context *st, struct gl_program *prog, enum pipe_shader_type shader_type) st_bind_ssbos() argument
H A Dst_atom_atomicbuf.c73 enum pipe_shader_type shader_type = pipe_shader_type_from_mesa(stage); in st_bind_atomics() local
91 st->pipe->set_shader_buffers(st->pipe, shader_type, in st_bind_atomics()
95 st->last_used_atomic_bindings[shader_type] = used_bindings; in st_bind_atomics()
H A Dst_atom_image.c158 enum pipe_shader_type shader_type) in st_bind_images()
176 unsigned last_num_images = st->state.num_images[shader_type]; in st_bind_images()
179 pipe->set_shader_images(pipe, shader_type, 0, num_images, unbind_slots, in st_bind_images()
181 st->state.num_images[shader_type] = num_images; in st_bind_images()
157 st_bind_images(struct st_context *st, struct gl_program *prog, enum pipe_shader_type shader_type) st_bind_images() argument
/third_party/vk-gl-cts/external/amber/src/src/vkscript/
H A Dsection_parser_test.cc49 EXPECT_EQ(kShaderTypeVertex, sections[0].shader_type); in TEST_F()
64 EXPECT_EQ(kShaderTypeVertex, sections[0].shader_type); in TEST_F()
101 EXPECT_EQ(kShaderTypeVertex, sections[0].shader_type); in TEST_F()
107 EXPECT_EQ(kShaderTypeFragment, sections[1].shader_type); in TEST_F()
113 EXPECT_EQ(kShaderTypeGeometry, sections[2].shader_type); in TEST_F()
138 EXPECT_EQ(kShaderTypeVertex, sections[0].shader_type); in TEST_F()
153 EXPECT_EQ(kShaderTypeVertex, sections[0].shader_type); in TEST_F()
189 ShaderType shader_type; in TEST_F() member
240 ShaderType shader_type = kShaderTypeVertex; in TEST_F() local
244 &shader_type, in TEST_F()
255 ShaderType shader_type = kShaderTypeVertex; TEST_F() local
275 ShaderType shader_type = kShaderTypeVertex; TEST_F() local
[all...]
H A Dsection_parser.cc46 ShaderType* shader_type, in NameToNodeType()
49 assert(shader_type); in NameToNodeType()
87 *shader_type = kShaderTypeCompute; in NameToNodeType()
92 *shader_type = kShaderTypeFragment; in NameToNodeType()
97 *shader_type = kShaderTypeGeometry; in NameToNodeType()
102 *shader_type = kShaderTypeTessellationControl; in NameToNodeType()
107 *shader_type = kShaderTypeTessellationEvaluation; in NameToNodeType()
112 *shader_type = kShaderTypeVertex; in NameToNodeType()
129 ShaderType shader_type, in AddSection()
137 sections_.push_back({section_type, shader_type, kShaderFormatSpirvAs in AddSection()
44 NameToNodeType(const std::string& data, NodeType* section_type, ShaderType* shader_type, ShaderFormat* fmt) const NameToNodeType() argument
128 AddSection(NodeType section_type, ShaderType shader_type, ShaderFormat fmt, size_t line_count, const std::string& contents) AddSection() argument
[all...]
H A Dsection_parser.h44 ShaderType shader_type; // Only valid when section_type == kShader member
64 ShaderType* shader_type, in NameToNodeTypeForTesting()
66 return NameToNodeType(name, section_type, shader_type, fmt); in NameToNodeTypeForTesting()
72 ShaderType shader_type,
78 ShaderType* shader_type,
62 NameToNodeTypeForTesting(const std::string& name, NodeType* section_type, ShaderType* shader_type, ShaderFormat* fmt) const NameToNodeTypeForTesting() argument
/third_party/vk-gl-cts/external/openglcts/modules/gl/
H A Dgl3cCommonBugsTests.cpp4875 * @param shader_type Shader stage the shader body should be returned for.
4883 std::string ReservedNamesTest::getShaderBody(_shader_type shader_type, _language_feature language_feature, in getShaderBody() argument
4921 if (shader_type == SHADER_TYPE_COMPUTE) in getShaderBody()
4925 else if (shader_type == SHADER_TYPE_TESS_CONTROL) in getShaderBody()
4929 else if (shader_type == SHADER_TYPE_TESS_EVALUATION) in getShaderBody()
4975 if (shader_type == SHADER_TYPE_GEOMETRY || shader_type == SHADER_TYPE_TESS_CONTROL || in getShaderBody()
4976 shader_type == SHADER_TYPE_TESS_EVALUATION) in getShaderBody()
4993 if (shader_type == SHADER_TYPE_GEOMETRY || shader_type in getShaderBody()
5484 isStructAllowed(_shader_type shader_type, _language_feature language_feature) const isStructAllowed() argument
[all...]
H A Dgl3cCommonBugsTests.hpp262 std::string getShaderBody(_shader_type shader_type, _language_feature language_feature,
264 std::string getShaderTypeName(_shader_type shader_type) const;
265 std::vector<_language_feature> getSupportedLanguageFeatures(_shader_type shader_type) const;
267 bool isStructAllowed(_shader_type shader_type, _language_feature language_feature) const;
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
H A Dgen_builtin_symbols.py760 def add_entry(self, essl_level, glsl_level, shader_type, name, symbol, essl_extension,
784 self.objs[name_hash]['shader_type2'] = shader_type
791 self.objs[name_hash]['shader_type3'] = shader_type
798 self.objs[name_hash]['shader_type4'] = shader_type
807 self.objs[name_hash]['shader_type'] = shader_type
817 self.objs[name_hash]['essl_ext_shader_type2'] = shader_type
822 self.objs[name_hash]['essl_ext_shader_type3'] = shader_type
827 self.objs[name_hash]['essl_ext_shader_type4'] = shader_type
834 self.objs[name_hash]['essl_ext_shader_type'] = shader_type
[all...]
/third_party/mesa3d/src/gallium/drivers/virgl/
H A Dvirgl_context.c126 enum pipe_shader_type shader_type; in virgl_rebind_resource() local
127 for (shader_type = 0; shader_type < PIPE_SHADER_TYPES; shader_type++) { in virgl_rebind_resource()
129 &vctx->shader_bindings[shader_type]; in virgl_rebind_resource()
137 virgl_encoder_set_uniform_buffer(vctx, shader_type, i, in virgl_rebind_resource()
151 virgl_encode_set_shader_buffers(vctx, shader_type, i, 1, in virgl_rebind_resource()
163 virgl_encode_set_shader_images(vctx, shader_type, i, 1, in virgl_rebind_resource()
200 enum pipe_shader_type shader_type) in virgl_attach_res_sampler_views()
204 &vctx->shader_bindings[shader_type]; in virgl_attach_res_sampler_views()
199 virgl_attach_res_sampler_views(struct virgl_context *vctx, enum pipe_shader_type shader_type) virgl_attach_res_sampler_views() argument
251 virgl_attach_res_uniform_buffers(struct virgl_context *vctx, enum pipe_shader_type shader_type) virgl_attach_res_uniform_buffers() argument
268 virgl_attach_res_shader_buffers(struct virgl_context *vctx, enum pipe_shader_type shader_type) virgl_attach_res_shader_buffers() argument
285 virgl_attach_res_shader_images(struct virgl_context *vctx, enum pipe_shader_type shader_type) virgl_attach_res_shader_images() argument
322 enum pipe_shader_type shader_type; virgl_reemit_draw_resources() local
1031 virgl_set_sampler_views(struct pipe_context *ctx, enum pipe_shader_type shader_type, unsigned start_slot, unsigned num_views, unsigned unbind_num_trailing_slots, bool take_ownership, struct pipe_sampler_view **views) virgl_set_sampler_views() argument
1437 virgl_release_shader_binding(struct virgl_context *vctx, enum pipe_shader_type shader_type) virgl_release_shader_binding() argument
1478 enum pipe_shader_type shader_type; virgl_context_destroy() local
[all...]
H A Dvirgl_winsys.h176 for (int shader_type = 0; shader_type < PIPE_SHADER_TYPES; shader_type++) { in virgl_ws_fill_new_caps_defaults()
177 caps->caps.v2.max_const_buffer_size[shader_type] = 4096 * sizeof(float[4]); in virgl_ws_fill_new_caps_defaults()
/third_party/mesa3d/src/compiler/glsl/
H A Dtest_optpass.cpp146 int shader_type = GL_VERTEX_SHADER; in test_optpass() local
154 { "vertex-shader", no_argument, &shader_type, GL_VERTEX_SHADER }, in test_optpass()
155 { "fragment-shader", no_argument, &shader_type, GL_FRAGMENT_SHADER }, in test_optpass()
183 shader->Type = shader_type; in test_optpass()
184 shader->Stage = _mesa_shader_enum_to_shader_stage(shader_type); in test_optpass()
223 &ctx->Const.ShaderCompilerOptions[_mesa_shader_enum_to_shader_stage(shader_type)]; in test_optpass()
H A Dgl_nir_link_uniforms.c1611 for (unsigned shader_type = 0; shader_type < MESA_SHADER_STAGES; shader_type++) { in gl_nir_link_uniforms()
1612 struct gl_linked_shader *sh = prog->_LinkedShaders[shader_type]; in gl_nir_link_uniforms()
1727 _mesa_hash_table_search(state.referenced_uniforms[shader_type], in gl_nir_link_uniforms()
1733 blocks[i].stageref |= 1U << shader_type; in gl_nir_link_uniforms()
1750 _mesa_hash_table_search(state.referenced_uniforms[shader_type], in gl_nir_link_uniforms()
1753 blocks[i].stageref |= 1U << shader_type; in gl_nir_link_uniforms()
1829 _mesa_hash_table_search(state.referenced_uniforms[shader_type], var->name); in gl_nir_link_uniforms()
1831 blocks[i].stageref |= 1U << shader_type; in gl_nir_link_uniforms()
[all...]
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_shader.c276 enum pipe_shader_type shader_type, in svga_init_shader_key_common()
283 assert(shader_type < ARRAY_SIZE(svga->curr.num_sampler_views)); in svga_init_shader_key_common()
288 key->num_textures = MAX2(svga->curr.num_sampler_views[shader_type], in svga_init_shader_key_common()
289 svga->curr.num_samplers[shader_type]); in svga_init_shader_key_common()
298 svga_use_sampler_state_mapping(svga, svga->curr.num_samplers[shader_type]); in svga_init_shader_key_common()
304 struct pipe_sampler_view *view = svga->curr.sampler_views[shader_type][i]; in svga_init_shader_key_common()
306 *sampler = svga->curr.sampler[shader_type][i]; in svga_init_shader_key_common()
438 if (svga->curr.sampler[shader_type][j] == sampler) { in svga_init_shader_key_common()
478 if (shader_type != PIPE_SHADER_COMPUTE) in svga_init_shader_key_common()
485 &svga->curr.image_views[shader_type][ in svga_init_shader_key_common()
275 svga_init_shader_key_common(const struct svga_context *svga, enum pipe_shader_type shader_type, const struct svga_shader *shader, struct svga_compile_key *key) svga_init_shader_key_common() argument
[all...]
/third_party/mesa3d/src/compiler/glsl/tests/
H A Dbuiltin_variable_test.cpp34 common_builtin(GLenum shader_type) in common_builtin() argument
35 : shader_type(shader_type) in common_builtin()
49 GLenum shader_type; member in common_builtin
68 this->shader->Type = this->shader_type; in SetUp()
69 this->shader->Stage = _mesa_shader_enum_to_shader_stage(this->shader_type); in SetUp()
/third_party/mesa3d/src/mesa/main/
H A Dglspirv.c127 gl_shader_stage shader_type = shader->Stage; in _mesa_spirv_link_shaders() local
137 if (prog->_LinkedShaders[shader_type]) { in _mesa_spirv_link_shaders()
148 linked->Stage = shader_type; in _mesa_spirv_link_shaders()
152 ctx->Driver.NewProgram(ctx, shader_type, prog->Name, false); in _mesa_spirv_link_shaders()
169 prog->_LinkedShaders[shader_type] = linked; in _mesa_spirv_link_shaders()
170 prog->data->linked_stages |= 1 << shader_type; in _mesa_spirv_link_shaders()
H A Darbprogram.c424 const char *shader_type = in set_program_string() local
428 shader_type, prog->Id); in set_program_string()
433 shader_type, prog->Id); in set_program_string()
436 shader_type, prog->Id); in set_program_string()
447 const char *shader_type = in set_program_string() local
451 capture_path, shader_type[0], prog->Id); in set_program_string()
457 shader_type, shader_type, (const char *) string); in set_program_string()
/third_party/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_context.c453 enum pipe_shader_type shader_type, in draw_set_mapped_constant_buffer()
458 assert(shader_type == PIPE_SHADER_VERTEX || in draw_set_mapped_constant_buffer()
459 shader_type == PIPE_SHADER_GEOMETRY || in draw_set_mapped_constant_buffer()
460 shader_type == PIPE_SHADER_TESS_CTRL || in draw_set_mapped_constant_buffer()
461 shader_type == PIPE_SHADER_TESS_EVAL); in draw_set_mapped_constant_buffer()
466 switch (shader_type) { in draw_set_mapped_constant_buffer()
490 enum pipe_shader_type shader_type, in draw_set_mapped_shader_buffer()
495 assert(shader_type == PIPE_SHADER_VERTEX || in draw_set_mapped_shader_buffer()
496 shader_type == PIPE_SHADER_GEOMETRY || in draw_set_mapped_shader_buffer()
497 shader_type in draw_set_mapped_shader_buffer()
452 draw_set_mapped_constant_buffer(struct draw_context *draw, enum pipe_shader_type shader_type, unsigned slot, const void *buffer, unsigned size ) draw_set_mapped_constant_buffer() argument
489 draw_set_mapped_shader_buffer(struct draw_context *draw, enum pipe_shader_type shader_type, unsigned slot, const void *buffer, unsigned size ) draw_set_mapped_shader_buffer() argument
[all...]
H A Ddraw_context.h170 enum pipe_shader_type shader_type,
175 enum pipe_shader_type shader_type,
180 enum pipe_shader_type shader_type,
306 enum pipe_shader_type shader_type,
313 enum pipe_shader_type shader_type,
/third_party/vk-gl-cts/external/openglcts/modules/glesext/
H A DesextcTestCaseBase.cpp367 std::string getShaderTypeName(glw::GLenum shader_type) in getShaderTypeName() argument
369 switch (shader_type) in getShaderTypeName()
442 glw::GLint shader_type = 0; in buildProgramVA() local
445 gl.getShaderiv(sh_id, GL_SHADER_TYPE, &shader_type); in buildProgramVA()
446 std::string shader_type_str = getShaderTypeName(shader_type); in buildProgramVA()
496 glw::GLint shader_type = 0; in buildProgramVA() local
497 gl.getShaderiv(*it, GL_SHADER_TYPE, &shader_type); in buildProgramVA()
498 std::string shader_type_str = getShaderTypeName(shader_type); in buildProgramVA()
/third_party/mesa3d/src/intel/blorp/
H A Dblorp_priv.h256 enum blorp_shader_type shader_type; member
266 enum blorp_shader_type shader_type; member
273 .shader_type = _type, \
/third_party/vk-gl-cts/external/openglcts/modules/glesext/tessellation_shader/
H A DesextcTessellationShaderInvariance.cpp356 glw::GLenum shader_type = shader_types[n_shader_type]; in initTest() local
357 glw::GLenum shader_type_es = (glw::GLenum)shader_type; in initTest()
361 if (shader_type == SHADER_TYPE_TESSELLATION_EVALUATION) in initTest()
365 else if ((shader_type != SHADER_TYPE_FRAGMENT) && (shader_type != SHADER_TYPE_TESSELLATION_CONTROL) && in initTest()
366 (shader_type != SHADER_TYPE_VERTEX)) in initTest()
386 if (shader_type == SHADER_TYPE_FRAGMENT) in initTest()
390 else if (shader_type == SHADER_TYPE_TESSELLATION_CONTROL) in initTest()
394 else if (shader_type == SHADER_TYPE_TESSELLATION_EVALUATION) in initTest()
398 else if (shader_type in initTest()
[all...]
/third_party/mesa3d/src/freedreno/decode/
H A Dpgmdump2.c73 const char *shader_type; member
208 state->shader_type = "FRAG"; in decode_header()
211 state->shader_type = "VERT"; in decode_header()
218 state->shader_type = "BVERT"; in decode_header()
392 state->shader_type, stats.instructions, stats.nops, in decode_shader_descriptor_block()
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_nir_lower_shader_calls.c338 nir_ssa_def *shader_type = nir_load_btd_shader_type_intel(b); in brw_nir_create_trivial_return_shader() local
341 nir_ieq_imm(b, shader_type, GEN_RT_BTD_SHADER_TYPE_INTERSECTION); in brw_nir_create_trivial_return_shader()
343 nir_ieq_imm(b, shader_type, GEN_RT_BTD_SHADER_TYPE_ANY_HIT); in brw_nir_create_trivial_return_shader()

Completed in 32 milliseconds

1234