[gnome-remote-desktop] rdp: Allow dma-bufs again when CUDA is available



commit ca23bb3898e9f9570497623784933bae44602145
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Thu Jan 13 19:37:20 2022 +0100

    rdp: Allow dma-bufs again when CUDA is available
    
    With the map_or_download API now being implemented, there is nothing
    that blocks this anymore.

 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 93e9dea3..0c686f59 100644
--- a/src/grd-rdp-pipewire-stream.c
+++ b/src/grd-rdp-pipewire-stream.c
@@ -411,7 +411,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 && !stream->rdp_surface->hwaccel_nvidia)
+  if (egl_thread)
     allowed_buffer_types |= 1 << SPA_DATA_DmaBuf;
 
   params[0] = spa_pod_builder_add_object (
@@ -1002,7 +1002,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 && !stream->rdp_surface->hwaccel_nvidia)
+  if (egl_thread)
     {
       uint32_t drm_format;
       int n_modifiers;


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