Implement main compositor

Replace the patches to Monado's main compositor with a local
implementation, reusing code when relevant.

The layer squasher is very close to comp_render_cs, while distortion is
completely replaced by foveation.
This commit is contained in:
Patrick Nicolas
2026-03-31 09:06:27 +02:00
parent b2f95938e6
commit 22a819b8c8
60 changed files with 3147 additions and 3680 deletions
+3 -3
View File
@@ -28,11 +28,11 @@ struct method_trait
template <auto Method, typename Result, typename Class, typename... Args>
struct method_trait<Method, Result (Class::*)(Args...)>
{
static Result magic(Class::base * arg, Args... args)
static Result magic(Class::base_t * arg, Args... args)
{
return std::invoke(Method, static_cast<Class *>(arg), args...);
}
static Result magic2(Args... args, Class::base * arg)
static Result magic2(Args... args, Class::base_t * arg)
{
return std::invoke(Method, static_cast<Class *>(arg), args...);
}
@@ -48,7 +48,7 @@ namespace wivrn
// Example:
// class derived: public base_class
// {
// using base = base_class;
// using base_t = base_class;
// void foo(int x);
// };
//