Home
last modified time | relevance | path

Searched refs:GlBuffer (Results 1 – 19 of 19) sorted by relevance

/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dgl_buffer.cc24 absl::Status CopyBuffer(const GlBuffer& read_buffer, in CopyBuffer()
25 const GlBuffer& write_buffer) { in CopyBuffer()
50 GlBuffer::GlBuffer(GlBuffer&& buffer) in GlBuffer() function in tflite::gpu::gl::GlBuffer
51 : GlBuffer(buffer.target_, buffer.id_, buffer.bytes_size_, buffer.offset_, in GlBuffer()
56 GlBuffer& GlBuffer::operator=(GlBuffer&& buffer) { in operator =()
70 GlBuffer::~GlBuffer() { Invalidate(); } in ~GlBuffer()
72 void GlBuffer::Invalidate() { in Invalidate()
79 absl::Status GlBuffer::BindToIndex(uint32_t index) const { in BindToIndex()
84 absl::Status GlBuffer::MakeView(size_t offset, size_t bytes_size, in MakeView()
85 GlBuffer* gl_buffer) { in MakeView()
[all …]
Dgl_buffer.h37 class GlBuffer {
41 GlBuffer(GLenum target, GLuint id, size_t bytes_size, size_t offset, in GlBuffer() function
50 GlBuffer() : GlBuffer(GL_INVALID_ENUM, GL_INVALID_INDEX, 0, 0, false) {} in GlBuffer() function
53 GlBuffer(GlBuffer&& buffer);
54 GlBuffer& operator=(GlBuffer&& buffer);
55 GlBuffer(const GlBuffer&) = delete;
56 GlBuffer& operator=(const GlBuffer&) = delete;
58 ~GlBuffer();
81 absl::Status MakeView(size_t offset, size_t bytes_size, GlBuffer* gl_buffer);
84 GlBuffer MakeRef();
[all …]
Dgl_buffer_test.cc34 GlBuffer buffer; in TEST()
44 GlBuffer buffer; in TEST()
56 GlBuffer buffer; in TEST()
63 GlBuffer view; in TEST()
84 GlBuffer buffer; in TEST()
89 GlBuffer view1; in TEST()
91 GlBuffer view2; in TEST()
103 GlBuffer buffer; in TEST()
107 GlBuffer view1; in TEST()
110 GlBuffer view2; in TEST()
Dobject_manager.h44 absl::Status RegisterBuffer(uint32_t id, GlBuffer buffer);
49 GlBuffer* FindBuffer(uint32_t id) const;
62 std::vector<std::unique_ptr<GlBuffer>> buffers_;
71 GlBuffer* gl_buffer);
76 GlBuffer* gl_buffer);
80 absl::Status CopyFromPHWC4Buffer(const GlBuffer& buffer, TensorFloat32* tensor);
Dobject_manager.cc28 GlBuffer* gl_buffer) { in CreatePHWC4BufferFromTensor()
36 GlBuffer* gl_buffer) { in CreatePHWC4BufferFromTensorRef()
41 absl::Status CopyFromPHWC4Buffer(const GlBuffer& buffer, in CopyFromPHWC4Buffer()
50 absl::Status ObjectManager::RegisterBuffer(uint32_t id, GlBuffer buffer) { in RegisterBuffer()
54 buffers_[id] = absl::make_unique<GlBuffer>(std::move(buffer)); in RegisterBuffer()
64 GlBuffer* ObjectManager::FindBuffer(uint32_t id) const { in FindBuffer()
Dapi2.cc53 absl::Status WrapSSBO(OpenGlBuffer ssbo, GlBuffer* buffer) { in WrapSSBO()
56 *buffer = GlBuffer(GL_SHADER_STORAGE_BUFFER, ssbo.id, size_bytes, 0, false); in WrapSSBO()
60 absl::Status MaybeAllocateGlBuffer(const TensorObjectDef& def, GlBuffer* ssbo) { in MaybeAllocateGlBuffer()
150 GlBuffer buffer; in SetExternalObject()
199 GlBuffer invalid_buffer; in Init()
230 GlBuffer ssbo; in MaybeAllocateInternalObject()
255 GlBuffer bbb; in MaybeAllocateExternalObject()
272 GlBuffer external_ssbo_;
Druntime.cc138 GlBuffer* gl_buffer) { in MakeGlBuffer()
304 GlBuffer gl_buffer; in AllocateInternalObject()
333 GlBuffer gl_buffer; in AllocateConstObject()
356 GlBuffer shared_buffer; in PrepareForExecution()
Dapi.cc257 GlBuffer ref; in NewRun()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/runtime/
Dshared_buffer.h43 bool Add(const ObjectData& data, GlBuffer* buffer) { in Add()
49 *buffer = GlBuffer(GL_SHADER_STORAGE_BUFFER, buffer_id_.id(), data.size(), in Add()
58 absl::Status CreateSharedGlBuffer(GlBuffer* gl_buffer) { in CreateSharedGlBuffer()
65 *gl_buffer = GlBuffer(GL_SHADER_STORAGE_BUFFER, buffer_id_.Release(), in CreateSharedGlBuffer()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/
Dconverter.cc34 absl::Status WrapSSBO(OpenGlBuffer ssbo, GlBuffer* buffer) { in WrapSSBO()
37 *buffer = GlBuffer(GL_SHADER_STORAGE_BUFFER, ssbo.id, size_bytes, 0, false); in WrapSSBO()
151 GlBuffer input_ssbo; in Convert()
153 GlBuffer output_ssbo; in Convert()
246 GlBuffer input_ssbo; in Convert()
248 GlBuffer output_ssbo; in Convert()
296 GlBuffer input_obj; in Copy()
298 GlBuffer output_obj; in Copy()
323 GlBuffer gl_buffer; in Convert()
332 GlBuffer gl_buffer; in Convert()
Dconverter_test.cc61 GlBuffer input_buffer; in RunFromTensorTest()
65 GlBuffer output_buffer; in RunFromTensorTest()
118 GlBuffer input_buffer; in RunToTensorTest()
122 GlBuffer output_buffer; in RunToTensorTest()
Dtest_util.cc86 GlBuffer buffer; in Invoke()
95 GlBuffer buffer; in Invoke()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/converters/
Dphwc4_to_bhwc.h37 absl::Status Convert(const BHWC& shape, const GlBuffer& source,
39 GlBuffer* destination);
Dbhwc_to_phwc4.h37 absl::Status Convert(const BHWC& shape, const GlBuffer& source,
39 GlBuffer* destination);
Dphwc4_to_bhwc.cc69 const GlBuffer& source, in Convert()
71 GlBuffer* destination) { in Convert()
Dbhwc_to_phwc4.cc76 const GlBuffer& source, in Convert()
78 GlBuffer* destination) { in Convert()
Dbhwc_to_phwc4_test.cc56 GlBuffer input_buffer; in RunTest()
60 GlBuffer output_buffer; in RunTest()
Dphwc4_to_bhwc_test.cc57 GlBuffer input_buffer; in RunTest()
61 GlBuffer output_buffer; in RunTest()
/external/tensorflow/tensorflow/lite/delegates/gpu/
Dgl_delegate.cc126 tensor_index, GlBuffer(GL_SHADER_STORAGE_BUFFER, ssbo, bytes_size, in BindBufferToTensor()
195 GlBuffer buffer; in Prepare()
233 GlBuffer buffer; in Prepare()