diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-03-03 03:47:30 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-03-08 11:34:36 +0100 |
commit | d0c221a233e0bc07e22cffb06ec3ae77a5f96010 (patch) | |
tree | 154ad68ce13a71541bf6667f933194e313237dc1 /include/utils.h | |
parent | 4d8a9e2e1d7d257aeff0497b6550df82f60bc0e8 (diff) |
Refactor kms_vaapi and kms_cuda
Also fixes color metadata, color range and hdr on nvidia wayland.
Diffstat (limited to 'include/utils.h')
-rw-r--r-- | include/utils.h | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/include/utils.h b/include/utils.h index 898f375..cb3bd6b 100644 --- a/include/utils.h +++ b/include/utils.h @@ -3,28 +3,11 @@ #include "vec2.h" #include "../include/egl.h" +#include "../include/defs.h" #include <stdbool.h> #include <stdint.h> #include <X11/extensions/Xrandr.h> -typedef enum { - GSR_GPU_VENDOR_AMD, - GSR_GPU_VENDOR_INTEL, - GSR_GPU_VENDOR_NVIDIA -} gsr_gpu_vendor; - -typedef struct { - gsr_gpu_vendor vendor; - int gpu_version; /* 0 if unknown */ -} gsr_gpu_info; - -typedef enum { - GSR_MONITOR_ROT_0, - GSR_MONITOR_ROT_90, - GSR_MONITOR_ROT_180, - GSR_MONITOR_ROT_270 -} gsr_monitor_rotation; - typedef struct { const char *name; int name_len; @@ -36,12 +19,6 @@ typedef struct { uint32_t monitor_identifier; /* Only on drm and wayland */ } gsr_monitor; -typedef enum { - GSR_CONNECTION_X11, - GSR_CONNECTION_WAYLAND, - GSR_CONNECTION_DRM -} gsr_connection_type; - typedef struct { const char *name; int name_len; |