[gnome-remote-desktop] hwaccel-nvidia: Add methods to get CUDA functions and damage-kernels
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] hwaccel-nvidia: Add methods to get CUDA functions and damage-kernels
- Date: Thu, 3 Mar 2022 14:23:08 +0000 (UTC)
commit 9fe52bc87df21d9cfe8f6c3471e761431f0f4899
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Fri Jan 7 12:16:10 2022 +0100
hwaccel-nvidia: Add methods to get CUDA functions and damage-kernels
This allows the CUDA damage detection class later to use them.
src/grd-hwaccel-nvidia.c | 20 ++++++++++++++++++++
src/grd-hwaccel-nvidia.h | 9 +++++++++
2 files changed, 29 insertions(+)
---
diff --git a/src/grd-hwaccel-nvidia.c b/src/grd-hwaccel-nvidia.c
index 43dafd18..7659a781 100644
--- a/src/grd-hwaccel-nvidia.c
+++ b/src/grd-hwaccel-nvidia.c
@@ -93,6 +93,26 @@ struct _GrdHwAccelNvidia
G_DEFINE_TYPE (GrdHwAccelNvidia, grd_hwaccel_nvidia, G_TYPE_OBJECT)
+void
+grd_hwaccel_nvidia_get_cuda_functions (GrdHwAccelNvidia *hwaccel_nvidia,
+ gpointer *cuda_funcs)
+{
+ *cuda_funcs = hwaccel_nvidia->cuda_funcs;
+}
+
+void
+grd_hwaccel_nvidia_get_cuda_damage_kernels (GrdHwAccelNvidia *hwaccel_nvidia,
+ CUfunction *cu_chk_dmg_pxl,
+ CUfunction *cu_cmb_dmg_arr_cols,
+ CUfunction *cu_cmb_dmg_arr_rows,
+ CUfunction *cu_simplify_dmg_arr)
+{
+ *cu_chk_dmg_pxl = hwaccel_nvidia->cu_chk_dmg_pxl;
+ *cu_cmb_dmg_arr_cols = hwaccel_nvidia->cu_cmb_dmg_arr_cols;
+ *cu_cmb_dmg_arr_rows = hwaccel_nvidia->cu_cmb_dmg_arr_rows;
+ *cu_simplify_dmg_arr = hwaccel_nvidia->cu_simplify_dmg_arr;
+}
+
void
grd_hwaccel_nvidia_push_cuda_context (GrdHwAccelNvidia *hwaccel_nvidia)
{
diff --git a/src/grd-hwaccel-nvidia.h b/src/grd-hwaccel-nvidia.h
index 069a9b80..04d526ea 100644
--- a/src/grd-hwaccel-nvidia.h
+++ b/src/grd-hwaccel-nvidia.h
@@ -32,6 +32,15 @@ G_DECLARE_FINAL_TYPE (GrdHwAccelNvidia, grd_hwaccel_nvidia,
GrdHwAccelNvidia *grd_hwaccel_nvidia_new (GrdEglThread *egl_thread);
+void grd_hwaccel_nvidia_get_cuda_functions (GrdHwAccelNvidia *hwaccel_nvidia,
+ gpointer *cuda_funcs);
+
+void grd_hwaccel_nvidia_get_cuda_damage_kernels (GrdHwAccelNvidia *hwaccel_nvidia,
+ CUfunction *cu_chk_dmg_pxl,
+ CUfunction *cu_cmb_dmg_arr_cols,
+ CUfunction *cu_cmb_dmg_arr_rows,
+ CUfunction *cu_simplify_dmg_arr);
+
void grd_hwaccel_nvidia_push_cuda_context (GrdHwAccelNvidia *hwaccel_nvidia);
void grd_hwaccel_nvidia_pop_cuda_context (GrdHwAccelNvidia *hwaccel_nvidia);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]