فهرست منبع

Extend the nvidia command size to 128

	It was exactly 64 for small arguments, but that fails for larger overlocks
Marc Di Luzio 6 سال پیش
والد
کامیت
00ed82f8e4
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      daemon/gpuclockctl.c

+ 4 - 4
daemon/gpuclockctl.c

@@ -72,9 +72,9 @@ int set_gpu_state_nv(struct GameModeGPUInfo *info)
 	// These commands don't technically even need root
 
 	/* Set the GPUGraphicsClockOffset parameter */
-	char core_arg[64];
+	char core_arg[128];
 	snprintf(core_arg,
-	         64,
+	         128,
 	         "[gpu:%ld]/GPUGraphicsClockOffset[%ld]=%ld",
 	         info->device,
 	         info->nv_perf_level,
@@ -86,9 +86,9 @@ int set_gpu_state_nv(struct GameModeGPUInfo *info)
 	}
 
 	/* Set the GPUMemoryTransferRateOffset parameter */
-	char mem_arg[64];
+	char mem_arg[128];
 	snprintf(mem_arg,
-	         64,
+	         128,
 	         "[gpu:%ld]/GPUMemoryTransferRateOffset[%ld]=%ld",
 	         info->device,
 	         info->nv_perf_level,