Searched refs:shader_src (Results 1 – 8 of 8) sorted by relevance
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/kernels/ |
D | converter.cc | 152 std::string shader_src; in Init() local 154 shader_src += "#pragma OPENCL EXTENSION cl_khr_fp16 : enable\n"; in Init() 156 shader_src += in Init() 165 shader_src += " " + out_data_type + "4 input = args.src_tensor.Read<" + in Init() 167 shader_src += " args.dst_tensor.Write(input, x, y, d, b);\n}"; in Init() 173 args.Compile(environment->device().GetInfo(), {}, &shader_src)); in Init() 175 &args, &shader_src)); in Init() 177 shader_src, "tensor_to_tensor", environment->context(), in Init() 235 std::string shader_src; in Init() local 237 shader_src += "#pragma OPENCL EXTENSION cl_khr_fp16 : enable\n"; in Init() [all …]
|
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/ |
D | api.cc | 233 std::string shader_src = GetShaderHeader(workgroup_size) + partial_shader; in AddFullShader() local 234 auto it = shader_to_index_.find(shader_src); in AddFullShader() 238 GlShader::CompileShader(GL_COMPUTE_SHADER, shader_src, &shader)); in AddFullShader() 240 shader_to_index_.insert({shader_src, shader_to_index_.size()}); in AddFullShader() 349 absl::Status OnShader(absl::Span<const char> shader_src) final { in OnShader() argument 350 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 | 49 absl::Status OnShader(absl::Span<const char> shader_src) final { in OnShader() 50 shaders.push_back(std::string(shader_src.data(), shader_src.size())); in OnShader()
|
D | api2.cc | 590 std::string shader_src = in Build() local 593 auto it = shader_to_index.find(shader_src); in Build() 597 shader_src, &shader)); in Build() 599 shader_to_index.insert({shader_src, shader_to_index.size()}); in Build()
|
D | serialization.cc | 325 void SerializedCompiledModelBuilder::AddShader(const std::string& shader_src) { in AddShader() argument 326 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 …]
|