From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 1D4C44CA6B for ; Tue, 27 May 2025 08:25:49 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 345FF68D4D5; Tue, 27 May 2025 11:25:47 +0300 (EEST) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 21C5B68D465 for ; Tue, 27 May 2025 11:25:40 +0300 (EEST) Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-55324587a53so1567461e87.0 for ; Tue, 27 May 2025 01:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1748334339; x=1748939139; darn=ffmpeg.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=Hk0rRnC7qWQPqStzfSGmqe+SzeCsJVMckd+REoqecEg=; b=FJn2LC0jJBi9/YClcvjjgTqIspJndQYSS1w2kk8kZER+9l68WPxe/jABzqWV/W/DyX mAhS7OK39LjUE+TqfabVsy80VsukY9/d7wZLG6x5zqwQ6q4G7RYoophDFtfIVyIS5psF 8y/Ua1OWk7WmlPwDh9TpMwa9Rx17hyC9LJS3aqdmsvKrIUC+MXcMEZ7ZBdNx2klZYndC nElB+aNK5BR0ZtclxuCUY/q0jH2wP82hPBCGzr4Kg+o380IJRkQ1zNHkAwnBy/iJTfZA nvNunfZcQOtLJ3IN/PhUTIZvr3yLC3BcgLMJnOYlOhGGLl4StRfEUp2WSod0yZvVyZQa U+4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748334339; x=1748939139; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Hk0rRnC7qWQPqStzfSGmqe+SzeCsJVMckd+REoqecEg=; b=bsMGAoV91uiKKxjRqdWMLoSzsF2aP9OxWB9bW/WHrjdttb2YPptHsHqcH6P3XHKkLX me3Ua52zF2bXoSP/lfK3q4rEMrx2CFANnNGAWBObxu+ZorsonqSzVCe2NLStQyYxAtlh 7CjdqsEfxxfEFS+SP1RmzLIVByUm1eAonQViNu215zm+duPOkA665XPMg0IdHJko+2qb fzWGHzd7pSf+8aD5rcBDEe3dAMlEAvM9GnCiPM95bC2bJc7n/NQTEWzM2naoLOd+faTu TW6UP99GGF7C1QUE4qWXt5nMX0v9FhXd455g7RbdUbtpKjnkus+qTVhc51hQNvtdm2MU Cukw== X-Gm-Message-State: AOJu0YzMjhwqXaSovZTDZlOXtM6hXOqX0X8O8kkIfSR3u17AJmOmU4tv lmBtPFDxCvj7GJyprW4cVKuocrbHrebz/W6PtWjyAinB/jRRRb8Z//+DDVuFJdyz+TBwAkCYsi0 HKg1uww== X-Gm-Gg: ASbGnctGHohvI6z/w1MSIMavk/BCknuIUSLUF120UOvPMnrVfhBtts80tiFOcUn4WC/ /2uEnT6EsNelvfgtfdrOjkAgjcollLsDZY+wpT60SsRYe8bPPOFKwMp7a6J9tRzSVCu3pl4IxZf 66QTWhho6lG4i9iCMdTtJvDee7ao5GmqrgGV4QZKw83nHq/X4kH7uiN3f4AgCzbAY7Ss6PdN5n0 gYCH67NhiT7gcWIknv572k9WmnlVV11sg/77m60Isi9ogZFbth+aApbEb1d1bAdzshlnFSdchl6 vFuTnbXuSo2JMZD83ODSBvED7+Gp8f3BTN+g6YB/liFIqaKuwDWxsh8LouTNoFRAKBhaA8Jvn2C hV0kbd9NylxK+dM/i97ov5t5AJ+D9j9CVhHv5HxH/HFjEB1E= X-Google-Smtp-Source: AGHT+IGwqUv2YFiorepeHJuVY6eTLExDeqfHgLWI6dLbbt2qFVPW0E8Myf61T2UlUCcjL6pZe2dASg== X-Received: by 2002:a05:6512:234f:b0:553:243c:c1d3 with SMTP id 2adb3069b0e04-553243cc34amr1521770e87.18.1748334339112; Tue, 27 May 2025 01:25:39 -0700 (PDT) Received: from tunnel335574-pt.tunnel.tserv24.sto1.ipv6.he.net (tunnel335574-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:11::2]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-55325072969sm537305e87.185.2025.05.27.01.25.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 May 2025 01:25:38 -0700 (PDT) Date: Tue, 27 May 2025 11:25:37 +0300 (EEST) From: =?ISO-8859-15?Q?Martin_Storsj=F6?= To: FFmpeg development discussions and patches In-Reply-To: <20250527081242.22892-16-ffmpeg@haasn.xyz> Message-ID: <8f5fff29-35dd-baf4-5058-760d33a1a52@martin.st> References: <20250527081242.22892-1-ffmpeg@haasn.xyz> <20250527081242.22892-16-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH v3 15/17] tests/checkasm: add checkasm tests for swscale ops 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 Cc: Niklas Haas Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Tue, 27 May 2025, Niklas Haas wrote: > From: Niklas Haas > > Because of the lack of an external ABI on low-level kernels, we cannot > directly test internal functions. Instead, we construct a minimal op chain > consisting of a read, the op to be tested, and a write. > > The bigger complication arises from the fact that the backend may generate > arbitrary internal state that needs to be passed back to the implementation, > which means we cannot directly call `func_ref` on the generated chain. To get > around this, always compile the op chain twice - once using the backend to be > tested, and once using the reference C backend. > > The actual entry point may also just be a shared wrapper, so we need to > be very careful to run checkasm_check_func() on a pseudo-pointer that will > actually be unique for each combination of backend and active CPU flags. > --- > tests/checkasm/Makefile | 8 +- > tests/checkasm/checkasm.c | 1 + > tests/checkasm/checkasm.h | 1 + > tests/checkasm/sw_ops.c | 776 ++++++++++++++++++++++++++++++++++++++ > 4 files changed, 785 insertions(+), 1 deletion(-) > create mode 100644 tests/checkasm/sw_ops.c When adding a new checkasm test group like this, add it to tests/fate/checkasm.mak too, otherwise it is missed by "make fate" and "make fate-checkasm", which run all the individual test groups separately. // Martin _______________________________________________ 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".