aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSteam Deck User <deck@archlinux.steamdeck>2023-04-01 19:05:56 +0200
committerSteam Deck User <deck@archlinux.steamdeck>2023-04-01 19:05:56 +0200
commitc720d38978b6697b94fa9bca0913370bbc5bb61c (patch)
tree227b68a8f5783df70f95af473ed6b925ff33c58e /src/main.cpp
parent29237c7116671b37344c9813a0c9f5ca63ece48d (diff)
Rename drm to vaapi
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index efea666..12fb37a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,7 +1,7 @@
extern "C" {
#include "../include/capture/nvfbc.h"
#include "../include/capture/xcomposite_cuda.h"
-#include "../include/capture/xcomposite_drm.h"
+#include "../include/capture/xcomposite_vaapi.h"
#include "../include/egl.h"
#include "../include/time.h"
}
@@ -1461,21 +1461,21 @@ int main(int argc, char **argv) {
if(!capture) {
switch(gpu_inf.vendor) {
case GPU_VENDOR_AMD: {
- gsr_capture_xcomposite_drm_params xcomposite_params;
+ gsr_capture_xcomposite_vaapi_params xcomposite_params;
xcomposite_params.window = src_window_id;
xcomposite_params.follow_focused = follow_focused;
xcomposite_params.region_size = region_size;
- capture = gsr_capture_xcomposite_drm_create(&xcomposite_params);
+ capture = gsr_capture_xcomposite_vaapi_create(&xcomposite_params);
if(!capture)
return 1;
break;
}
case GPU_VENDOR_INTEL: {
- gsr_capture_xcomposite_drm_params xcomposite_params;
+ gsr_capture_xcomposite_vaapi_params xcomposite_params;
xcomposite_params.window = src_window_id;
xcomposite_params.follow_focused = follow_focused;
xcomposite_params.region_size = region_size;
- capture = gsr_capture_xcomposite_drm_create(&xcomposite_params);
+ capture = gsr_capture_xcomposite_vaapi_create(&xcomposite_params);
if(!capture)
return 1;
break;