From 762ac5aa9f4797b66653ab1e8093f1f224ccadd2 Mon Sep 17 00:00:00 2001 From: Valeri Date: Sat, 14 Oct 2023 17:35:45 +0300 Subject: host1x/codecs: enable CUDA on Linux --- src/video_core/host1x/codecs/codec.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/video_core/host1x/codecs/codec.cpp b/src/video_core/host1x/codecs/codec.cpp index 8d7da50fc..dbcf508e5 100644 --- a/src/video_core/host1x/codecs/codec.cpp +++ b/src/video_core/host1x/codecs/codec.cpp @@ -137,16 +137,6 @@ bool Codec::CreateGpuAvDevice() { break; } if ((config->methods & HW_CONFIG_METHOD) != 0 && config->device_type == type) { -#if defined(__unix__) - // Some linux decoding backends are reported to crash with this config method - // TODO(ameerj): Properly support this method - if ((config->methods & AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX) != 0) { - // skip zero-copy decoders, we don't currently support them - LOG_DEBUG(Service_NVDRV, "Skipping decoder {} with unsupported capability {}.", - av_hwdevice_get_type_name(type), config->methods); - continue; - } -#endif LOG_INFO(Service_NVDRV, "Using {} GPU decoder", av_hwdevice_get_type_name(type)); av_codec_ctx->pix_fmt = config->pix_fmt; return true; -- cgit v1.2.3 From eae0570a1cae446838f58c7e8c2d2ae6e998811b Mon Sep 17 00:00:00 2001 From: german77 Date: Sun, 15 Oct 2023 02:11:00 -0600 Subject: input_common: udp: Avoid crash when trying to map motion before client is ready --- src/input_common/drivers/udp_client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input_common/drivers/udp_client.cpp b/src/input_common/drivers/udp_client.cpp index 808b21069..77db60e92 100644 --- a/src/input_common/drivers/udp_client.cpp +++ b/src/input_common/drivers/udp_client.cpp @@ -338,6 +338,7 @@ void UDPClient::StartCommunication(std::size_t client, const std::string& host, for (std::size_t index = 0; index < PADS_PER_CLIENT; ++index) { const PadIdentifier identifier = GetPadIdentifier(client * PADS_PER_CLIENT + index); PreSetController(identifier); + PreSetMotion(identifier, 0); } } -- cgit v1.2.3