Searched refs:shader_src (Results 1 – 8 of 8) sorted by relevance
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/kernels/ |
D | converter.cc | 145 std::string shader_src; in Init() local 147 shader_src += "#pragma OPENCL EXTENSION cl_khr_fp16 : enable\n"; in Init() 149 shader_src += in Init() 158 shader_src += " " + out_data_type + "4 input = args.src_tensor.Read<" + in Init() 160 shader_src += " args.dst_tensor.Write(input, x, y, d, b);\n}"; in Init() 166 &args, &shader_src)); in Init() 168 shader_src, "tensor_to_tensor", environment->context(), in Init() 223 std::string shader_src; in Init() local 225 shader_src += "#pragma OPENCL EXTENSION cl_khr_fp16 : enable\n"; in Init() 229 shader_src += "__kernel void tensor_to_bhwc("; in Init() [all …]
|
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/ |
D | api.cc | 230 std::string shader_src = GetShaderHeader(workgroup_size) + partial_shader; in AddFullShader() local 231 auto it = shader_to_index_.find(shader_src); in AddFullShader() 235 GlShader::CompileShader(GL_COMPUTE_SHADER, shader_src, &shader)); in AddFullShader() 237 shader_to_index_.insert({shader_src, shader_to_index_.size()}); in AddFullShader() 346 absl::Status OnShader(absl::Span<const char> shader_src) final { in OnShader() argument 347 std::string source(shader_src.data(), shader_src.size()); in OnShader()
|
D | serialization.h | 47 void AddShader(const std::string& shader_src); 70 virtual absl::Status OnShader(absl::Span<const char> shader_src) = 0;
|
D | serialization_test.cc | 48 absl::Status OnShader(absl::Span<const char> shader_src) final { in OnShader() 49 shaders.push_back(std::string(shader_src.data(), shader_src.size())); in OnShader()
|
D | api2.cc | 587 std::string shader_src = in Build() local 590 auto it = shader_to_index.find(shader_src); in Build() 594 shader_src, &shader)); in Build() 596 shader_to_index.insert({shader_src, shader_to_index.size()}); in Build()
|
D | serialization.cc | 321 void SerializedCompiledModelBuilder::AddShader(const std::string& shader_src) { in AddShader() argument 322 shaders_.push_back(builder_.CreateString(shader_src)); in AddShader()
|
/external/autotest/client/deps/nvmap_compactor/src/ |
D | nvmap_carveout_compactor.c | 515 GLuint LoadShader(const char *shader_src, GLenum type) in LoadShader() argument 520 glShaderSource(shader, 1, &shader_src, NULL); in LoadShader()
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_shader.c | 470 const struct r600_shader_src *shader_src, 4384 const struct r600_shader_src *shader_src, in r600_bytecode_src() argument 4387 bc_src->sel = shader_src->sel; in r600_bytecode_src() 4388 bc_src->chan = shader_src->swizzle[chan]; in r600_bytecode_src() 4389 bc_src->neg = shader_src->neg; in r600_bytecode_src() 4390 bc_src->abs = shader_src->abs; in r600_bytecode_src() 4391 bc_src->rel = shader_src->rel; in r600_bytecode_src() 4392 bc_src->value = shader_src->value[bc_src->chan]; in r600_bytecode_src() 4393 bc_src->kc_bank = shader_src->kc_bank; in r600_bytecode_src() 4394 bc_src->kc_rel = shader_src->kc_rel; in r600_bytecode_src() [all …]
|