[gnome-remote-desktop] rdp: Disable dma-buf support for now, if CUDA is supported



commit 1909636f9784c8d45fcc7d281bd0e96c3409bdb8
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Wed Jan 12 19:01:58 2022 +0100

    rdp: Disable dma-buf support for now, if CUDA is supported
    
    In order to be able to use the damage detection mechanism on the GPU,
    the frame data needs to be available on it.
    This is currently only for the non-dma-buf case implemented.
    
    So, temporarily disable dma-buf support for now, if the GPU supports
    CUDA.

 src/grd-rdp-pipewire-stream.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/grd-rdp-pipewire-stream.c b/src/grd-rdp-pipewire-stream.c
index 27526ecf..c32fdfea 100644
--- a/src/grd-rdp-pipewire-stream.c
+++ b/src/grd-rdp-pipewire-stream.c
@@ -402,7 +402,7 @@ on_stream_param_changed (void                 *user_data,
   pod_builder = SPA_POD_BUILDER_INIT (params_buffer, sizeof (params_buffer));
 
   allowed_buffer_types = 1 << SPA_DATA_MemFd;
-  if (egl_thread)
+  if (egl_thread && !stream->rdp_surface->hwaccel_nvidia)
     allowed_buffer_types |= 1 << SPA_DATA_DmaBuf;
 
   params[0] = spa_pod_builder_add_object (
@@ -948,7 +948,7 @@ connect_to_stream (GrdRdpPipeWireStream  *stream,
   add_common_format_params (&pod_builder, spa_format, refresh_rate);
 
   egl_thread = grd_context_get_egl_thread (context);
-  if (egl_thread)
+  if (egl_thread && !stream->rdp_surface->hwaccel_nvidia)
     {
       uint32_t drm_format;
       int n_modifiers;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]