Find /dev/dri/card path that exists (the first one)

This commit is contained in:
dec05eba
2023-04-16 22:48:22 +02:00
committed by dec05eba
parent d953d0bb36
commit c0ebae365d
7 changed files with 42 additions and 15 deletions

View File

@@ -11,6 +11,7 @@ typedef struct {
Window window;
bool follow_focused; /* If this is set then |window| is ignored */
vec2i region_size; /* This is currently only used with |follow_focused| */
const char *card_path; /* reference */
} gsr_capture_xcomposite_vaapi_params;
gsr_capture* gsr_capture_xcomposite_vaapi_create(const gsr_capture_xcomposite_vaapi_params *params);