Resolve device selector on detach and add YuvStimProducer state tests.

Detach finds the shared producer via lcameraDev_resolveDeviceSelectorCReq
then removes buffers by attach identity; unit tests cover quale guards.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-14 11:04:22 -04:00
parent e7b7a311f7
commit 63532a6ee2
6 changed files with 374 additions and 18 deletions
@@ -0,0 +1,20 @@
#ifndef LCAMERA_BUFF_TESTS_HIL_SMO_CALLBACKS_STUB_H
#define LCAMERA_BUFF_TESTS_HIL_SMO_CALLBACKS_STUB_H
#include <user/compute.h>
#include <user/smoHooks.h>
#include <memory>
#include <vector>
namespace lcamera_buff_tests {
const smo::stim_buff::SmoCallbacks& hilSmoCallbacksStub();
std::shared_ptr<smo::compute::ClBuffer> createUseHostPtrBufferStub(
void* hostPtr,
size_t size,
cl_mem_flags flags);
} // namespace lcamera_buff_tests
#endif // LCAMERA_BUFF_TESTS_HIL_SMO_CALLBACKS_STUB_H