From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 0949E48267 for ; Fri, 15 Dec 2023 15:38:57 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 57C6C68D0F4; Fri, 15 Dec 2023 17:38:54 +0200 (EET) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 54C8668CF93 for ; Fri, 15 Dec 2023 17:38:47 +0200 (EET) Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-50bf82f4409so1868130e87.0 for ; Fri, 15 Dec 2023 07:38:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1702654726; x=1703259526; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=cEBq/WQVrzUbgPYKOzcH6DdYgAKuwJ61CEolA0c6nGE=; b=KXev8d8JK5P/GuT+w4J6dN2qZL2QLRkYZJs/EpbCr9uEdCmixNvvBBsjifzswTUvET XbR6XhrwH6mrBZPzchT9WJL+z2+Bt6ta9pLwAlM3yus1WSanTjR1LCVcMiPwK0Yc/cXs Rl/bc7QSKXgO2vwmu+qILwwOoSRaF3EBULVUuovJVAnT2X5NuPRZJWVXQMunLNaXhuRl e3AH+etFetv4nTwRey7EOWlahhyAIKEDUaQxkWvmKUVWTxTPS6wznQKLOmpLBIFT0j6y Clg/Ak0FIJQTxCpiSL+TYhVtsNDU6Xp3rC9sWRXGeOG8QnwZ/fUbr09ytZWkAxXrX1A6 Boxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702654726; x=1703259526; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cEBq/WQVrzUbgPYKOzcH6DdYgAKuwJ61CEolA0c6nGE=; b=NaE+bXuKSUDSBalD4pCmaJ1z2OnPLi6G4wIAyMwlncvSzayWi50b9Z7ywAJZdkOxPL in4OIRy0bQ7Lz87JyF0LdPdpWE0v8F+DhsNWJYbbJaK5WT62ICz89MPfNC0y8nh01JT9 RLacjhpmSk2Zz8xZFcCBqgxv3yvnZAIuDBoMsmuJxdmEMxNSDP/g9ybJT/FF7O3IVBni BsM14jlpO5Kr8JkOY7ohMeKzZva2NLxSrntP6kFLI8OrpbEUFjdZvRNZPPxNvZ+H70Ua /eXrOvyI5TU/wktY7TbFKCIMxibkh9f2eG6/K/Jcou0K+BdL1dzq6rB0OuFx4NsAD0IY 10Yw== X-Gm-Message-State: AOJu0YwhrLma043f4y2vz3pASbUW72wN66f7uqZL1nKicwdkqwbUnjT6 mcJ8sq+0/rdqL4kkQn9VxQvHXLby/Y45CkeC+Zbdkg== X-Google-Smtp-Source: AGHT+IFMhOejEEYWaMpoUOqNiItCmLmHA4oYzn4h5wMCFeKTW79oThY470vnrHYprpqLpa+2h5c5XQ== X-Received: by 2002:ac2:46ce:0:b0:50d:1842:551d with SMTP id p14-20020ac246ce000000b0050d1842551dmr5826820lfo.13.1702654725916; Fri, 15 Dec 2023 07:38:45 -0800 (PST) Received: from localhost (dsl-tkubng21-58c01c-243.dhcp.inet.fi. [88.192.28.243]) by smtp.gmail.com with ESMTPSA id w30-20020a0565120b1e00b0050c05910a2bsm2094884lfu.43.2023.12.15.07.38.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:38:45 -0800 (PST) From: =?UTF-8?q?Martin=20Storsj=C3=B6?= To: ffmpeg-devel@ffmpeg.org Date: Fri, 15 Dec 2023 17:38:45 +0200 Message-Id: <20231215153845.161544-1-martin@martin.st> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2] riscv: vc1dsp: Don't check vlenb before checking the CPU flags X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: We can't call ff_get_rv_vlenb() if we don't have RVV available at all. Due to the SIGILL signal handler in checkasm catching it, in an unexpected place, this caused checkasm to hang instead of reporting the issue. --- libavcodec/riscv/vc1dsp_init.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libavcodec/riscv/vc1dsp_init.c b/libavcodec/riscv/vc1dsp_init.c index 0d22d28f4d..e47b644f80 100644 --- a/libavcodec/riscv/vc1dsp_init.c +++ b/libavcodec/riscv/vc1dsp_init.c @@ -35,15 +35,13 @@ av_cold void ff_vc1dsp_init_riscv(VC1DSPContext *dsp) #if HAVE_RVV int flags = av_get_cpu_flags(); - if (ff_get_rv_vlenb() >= 16) { + if (flags & AV_CPU_FLAG_RVV_I32 && ff_get_rv_vlenb() >= 16) { + dsp->vc1_inv_trans_4x8_dc = ff_vc1_inv_trans_4x8_dc_rvv; + dsp->vc1_inv_trans_4x4_dc = ff_vc1_inv_trans_4x4_dc_rvv; if (flags & AV_CPU_FLAG_RVV_I64) { dsp->vc1_inv_trans_8x8_dc = ff_vc1_inv_trans_8x8_dc_rvv; dsp->vc1_inv_trans_8x4_dc = ff_vc1_inv_trans_8x4_dc_rvv; } - if (flags & AV_CPU_FLAG_RVV_I32) { - dsp->vc1_inv_trans_4x8_dc = ff_vc1_inv_trans_4x8_dc_rvv; - dsp->vc1_inv_trans_4x4_dc = ff_vc1_inv_trans_4x4_dc_rvv; - } } #endif } -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".