Home
last modified time | relevance | path

Searched refs:Fence (Results 1 – 25 of 68) sorted by relevance

123

/hardware/qcom/sm7250/display/sdm/libs/utils/
Dfence.cpp43 BufferSyncHandler* Fence::g_buffer_sync_handler_ = nullptr;
44 std::vector<std::weak_ptr<Fence>> Fence::wps_;
46 Fence::Fence(int fd, const string &name) : fd_(fd), name_(name) { in Fence() function in sdm::Fence
49 Fence::~Fence() { in ~Fence()
60 void Fence::Set(BufferSyncHandler *buffer_sync_handler) { in Set()
64 shared_ptr<Fence> Fence::Create(int fd, const string &name) { in Create()
70 shared_ptr<Fence> fence(new Fence(fd, name)); in Create()
80 int Fence::Dup(const shared_ptr<Fence> &fence) { in Dup()
84 int Fence::Get(const shared_ptr<Fence> &fence) { in Get()
88 shared_ptr<Fence> Fence::Merge(const shared_ptr<Fence> &fence1, const shared_ptr<Fence> &fence2) { in Merge()
[all …]
/hardware/qcom/sm7250/display/sdm/include/utils/
Dfence.h46 class Fence {
60 int Get(const shared_ptr<Fence> &fence);
66 ~Fence();
74 static shared_ptr<Fence> Create(int fd, const string &name);
77 static int Dup(const shared_ptr<Fence> &fence);
79 static shared_ptr<Fence> Merge(const shared_ptr<Fence> &fence1, const shared_ptr<Fence> &fence2);
81 static shared_ptr<Fence> Merge(const std::vector<shared_ptr<Fence>> &fences,
85 static DisplayError Wait(const shared_ptr<Fence> &fence);
86 static DisplayError Wait(const shared_ptr<Fence> &fence, int timeout);
89 static Status GetStatus(const shared_ptr<Fence> &fence);
[all …]
/hardware/qcom/sm7250/display/composer/
Dhwc_display_virtual_gpu.h55 shared_ptr<Fence> src_acquire_fence = nullptr;
56 shared_ptr<Fence> dst_acquire_fence = nullptr;
57 shared_ptr<Fence> release_fence = nullptr;
69 virtual HWC2::Error Present(shared_ptr<Fence> *out_retire_fence);
70 virtual HWC2::Error SetOutputBuffer(buffer_handle_t buf, shared_ptr<Fence> release_fence);
Dhwc_tonemapper.h61 shared_ptr<Fence> merged = nullptr;
62 shared_ptr<Fence> fence = nullptr;
79 void UpdateBuffer(const shared_ptr<Fence> &acquire_fence, LayerBuffer *buffer);
80 void SetReleaseFence(const shared_ptr<Fence> &fd);
95 shared_ptr<Fence> release_fence_[kNumIntermediateBuffers] = {nullptr, nullptr};
114 void DumpToneMapOutput(ToneMapSession *session, shared_ptr<sdm::Fence> acquire_fence);
Dgl_color_convert.h50 const shared_ptr<Fence> &src_acquire_fence,
51 const shared_ptr<Fence> &dst_acquire_fence,
52 shared_ptr<Fence> *release_fence) = 0;
Dgl_layer_stitch.h45 shared_ptr<Fence> src_acquire_fence = nullptr;
46 shared_ptr<Fence> dst_acquire_fence = nullptr;
54 shared_ptr<Fence> *release_fence) = 0;
Dgl_common.cpp112 int GLCommon::WaitOnInputFence(const std::vector<shared_ptr<Fence>> &in_fences) { in WaitOnInputFence()
115 shared_ptr<Fence> in_fence = Fence::Merge(in_fences, true /* ignore signaled*/); in WaitOnInputFence()
120 int fd = Fence::Dup(in_fence); in WaitOnInputFence()
126 DLOGE("Failed to create sync from source fd: %s", Fence::GetStr(in_fence).c_str()); in WaitOnInputFence()
137 int GLCommon::CreateOutputFence(shared_ptr<Fence> *out_fence) { in CreateOutputFence()
155 *out_fence = Fence::Create(fd, "gl_out_fence"); in CreateOutputFence()
Dgl_color_convert_impl.h47 const shared_ptr<Fence> &src_acquire_fence,
48 const shared_ptr<Fence> &dst_acquire_fence,
49 shared_ptr<Fence> *release_fence);
Dgl_color_convert_impl.cpp160 const shared_ptr<Fence> &src_acquire_fence, in Blit()
161 const shared_ptr<Fence> &dst_acquire_fence, in Blit()
162 shared_ptr<Fence> *release_fence) { in Blit()
179 std::vector<shared_ptr<Fence>> in_fence = {Fence::Merge(src_acquire_fence, dst_acquire_fence)}; in Blit()
Dgl_layer_stitch_impl.cpp143 shared_ptr<Fence> *release_fence) { in Blit()
146 std::vector<shared_ptr<Fence>> acquire_fences; in Blit()
147 std::vector<shared_ptr<Fence>> release_fences; in Blit()
161 shared_ptr<Fence> temp_release_fence = nullptr; in Blit()
174 *release_fence = Fence::Merge(release_fences, false); in Blit()
Dhwc_display_virtual_dpu.h44 virtual HWC2::Error Present(shared_ptr<Fence> *out_retire_fence);
45 virtual HWC2::Error SetOutputBuffer(buffer_handle_t buf, shared_ptr<Fence> release_fence);
Dhwc_layers.h92 HWC2::Error SetLayerBuffer(buffer_handle_t buffer, shared_ptr<Fence> acquire_fence);
117 void PushBackReleaseFence(const shared_ptr<Fence> &fence);
118 void PopBackReleaseFence(shared_ptr<Fence> *fence);
119 void PopFrontReleaseFence(shared_ptr<Fence> *fence);
144 std::deque<shared_ptr<Fence>> release_fences_;
Dgl_common.h68 virtual int WaitOnInputFence(const std::vector<shared_ptr<Fence>> &in_fences);
69 virtual int CreateOutputFence(shared_ptr<Fence> *out_fence);
Dhwc_display_virtual.h45 virtual HWC2::Error Present(shared_ptr<Fence> *out_retire_fence);
50 virtual HWC2::Error SetOutputBuffer(buffer_handle_t buf, shared_ptr<Fence> release_fence);
Dhwc_tonemapper.cpp90 int fence = gpu_tone_mapper_->blit(dst_hnd, src_hnd, Fence::Dup(ctx->merged)); in OnTask()
91 ctx->fence = Fence::Create(fence, "tonemap"); in OnTask()
134 void ToneMapSession::UpdateBuffer(const shared_ptr<Fence> &acquire_fence, LayerBuffer *buffer) { in UpdateBuffer()
143 void ToneMapSession::SetReleaseFence(const shared_ptr<Fence> &fd) { in SetReleaseFence()
229 ctx.merged = Fence::Merge(session->release_fence_[buffer_index], in ToneMap()
283 void HWCToneMapper::DumpToneMapOutput(ToneMapSession *session, shared_ptr<Fence> acquire_fd) { in DumpToneMapOutput()
291 Fence::Wait(acquire_fd); in DumpToneMapOutput()
Dhwc_display_dummy.h46 virtual HWC2::Error Present(shared_ptr<Fence> *out_retire_fence);
52 virtual HWC2::Error SetClientTarget(buffer_handle_t target, shared_ptr<Fence> acquire_fence,
Dhwc_display_pluggable_test.h48 virtual HWC2::Error Present(shared_ptr<Fence> *out_retire_fence);
100 HWC2::Error PostCommit(shared_ptr<Fence> *out_retire_fence);
DQtiComposerCommandBuffer.h56 using sdm::Fence;
215 void setPresentFence(const shared_ptr<Fence> &presentFence) { in setPresentFence()
222 const std::vector<shared_ptr<Fence>>& releaseFences) { in setReleaseFences()
251 const shared_ptr<Fence>& acquireFence, Dataspace dataspace, in setClientTarget()
272 const shared_ptr<Fence>& releaseFence) { in setOutputBuffer()
316 const shared_ptr<Fence>& acquireFence) { in setLayerBuffer()
590 void writeFence(const shared_ptr<Fence>& fence) { in writeFence()
595 handle->data[0] = Fence::Dup(fence); in writeFence()
597 ALOGW("failed to get temporary handle for fence %s", Fence::GetStr(fence).c_str()); in writeFence()
598 Fence::Wait(fence); in writeFence()
[all …]
Dhwc_display.h228 shared_ptr<Fence> acquire_fence, in SetReadbackBuffer()
232 virtual HWC2::Error GetReadbackBufferFence(shared_ptr<Fence> *release_fence) { in GetReadbackBufferFence()
313 virtual HWC2::Error SetClientTarget(buffer_handle_t target, shared_ptr<Fence> acquire_fence,
315 virtual HWC2::Error GetClientTarget(buffer_handle_t target, shared_ptr<Fence> acquire_fence,
385 std::vector<shared_ptr<Fence>> *out_fences);
386 virtual HWC2::Error Present(shared_ptr<Fence> *out_retire_fence) = 0;
476 shared_ptr<Fence> &retire_fence);
479 virtual HWC2::Error PostCommitLayerStack(shared_ptr<Fence> *out_retire_fence);
581 shared_ptr<Fence> client_acquire_fence_ = nullptr;
600 shared_ptr<Fence> fbt_release_fence_ = nullptr;
[all …]
Dhwc_display_dummy.cpp55 HWC2::Error HWCDisplayDummy::Present(shared_ptr<Fence> *out_retire_fence) { in Present()
116 shared_ptr<Fence> acquire_fence, in SetClientTarget()
Dgl_layer_stitch_impl.h46 …virtual int Blit(const std::vector<StitchParams> &stitch_params, shared_ptr<Fence> *release_fence);
/hardware/qcom/sm7250/display/sdm/libs/core/drm/
Dhw_tv_drm.h46 virtual DisplayError Doze(const HWQosData &qos_data, shared_ptr<Fence> *release_fence);
47 virtual DisplayError DozeSuspend(const HWQosData &qos_data, shared_ptr<Fence> *release_fence);
52 virtual DisplayError PowerOn(const HWQosData &qos_data, shared_ptr<Fence> *release_fence);
Dhw_peripheral_drm.h59 virtual DisplayError PowerOn(const HWQosData &qos_data, shared_ptr<Fence> *release_fence);
61 virtual DisplayError Doze(const HWQosData &qos_data, shared_ptr<Fence> *release_fence);
62 virtual DisplayError DozeSuspend(const HWQosData &qos_data, shared_ptr<Fence> *release_fence);
/hardware/qcom/sm7250/display/sdm/include/core/
Dlayer_buffer.h250 shared_ptr<Fence> acquire_fence = nullptr;
262 shared_ptr<Fence> release_fence = nullptr;
/hardware/qcom/sm7250/display/sdm/libs/core/
Dhw_interface.h91 virtual DisplayError PowerOn(const HWQosData &qos_data, shared_ptr<Fence> *release_fence) = 0;
93 virtual DisplayError Doze(const HWQosData &qos_data, shared_ptr<Fence> *release_fence) = 0;
95 shared_ptr<Fence> *release_fence) = 0;

123