mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
tests/checkasm/vvc_mc: prevent function inline to avoid stack overflow
Fixes stack overflow on Windows when by default we have 1 MB. Individually those functions fit, but when they are all inlined, it's too much. Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
@@ -72,7 +72,7 @@ static const int sizes[] = { 2, 4, 8, 16, 32, 64, 128 };
|
||||
randomize_buffers(buf0, buf1, size, mask); \
|
||||
} while (0)
|
||||
|
||||
static void check_put_vvc_luma(void)
|
||||
static av_noinline void check_put_vvc_luma(void)
|
||||
{
|
||||
LOCAL_ALIGNED_32(int16_t, dst0, [DST_BUF_SIZE / 2]);
|
||||
LOCAL_ALIGNED_32(int16_t, dst1, [DST_BUF_SIZE / 2]);
|
||||
@@ -120,7 +120,7 @@ static void check_put_vvc_luma(void)
|
||||
report("put_luma");
|
||||
}
|
||||
|
||||
static void check_put_vvc_luma_uni(void)
|
||||
static av_noinline void check_put_vvc_luma_uni(void)
|
||||
{
|
||||
LOCAL_ALIGNED_32(uint8_t, dst0, [DST_BUF_SIZE]);
|
||||
LOCAL_ALIGNED_32(uint8_t, dst1, [DST_BUF_SIZE]);
|
||||
@@ -171,7 +171,7 @@ static void check_put_vvc_luma_uni(void)
|
||||
report("put_uni_luma");
|
||||
}
|
||||
|
||||
static void check_put_vvc_chroma(void)
|
||||
static av_noinline void check_put_vvc_chroma(void)
|
||||
{
|
||||
LOCAL_ALIGNED_32(int16_t, dst0, [DST_BUF_SIZE / 2]);
|
||||
LOCAL_ALIGNED_32(int16_t, dst1, [DST_BUF_SIZE / 2]);
|
||||
@@ -219,7 +219,7 @@ static void check_put_vvc_chroma(void)
|
||||
report("put_chroma");
|
||||
}
|
||||
|
||||
static void check_put_vvc_chroma_uni(void)
|
||||
static av_noinline void check_put_vvc_chroma_uni(void)
|
||||
{
|
||||
LOCAL_ALIGNED_32(uint8_t, dst0, [DST_BUF_SIZE]);
|
||||
LOCAL_ALIGNED_32(uint8_t, dst1, [DST_BUF_SIZE]);
|
||||
@@ -273,7 +273,7 @@ static void check_put_vvc_chroma_uni(void)
|
||||
#define AVG_SRC_BUF_SIZE (MAX_CTU_SIZE * MAX_CTU_SIZE)
|
||||
#define AVG_DST_BUF_SIZE (MAX_PB_SIZE * MAX_PB_SIZE * 2)
|
||||
|
||||
static void check_avg(void)
|
||||
static av_noinline void check_avg(void)
|
||||
{
|
||||
LOCAL_ALIGNED_32(int16_t, src00, [AVG_SRC_BUF_SIZE]);
|
||||
LOCAL_ALIGNED_32(int16_t, src01, [AVG_SRC_BUF_SIZE]);
|
||||
@@ -333,7 +333,7 @@ static void check_avg(void)
|
||||
}
|
||||
|
||||
#define SR_RANGE 2
|
||||
static void check_dmvr(void)
|
||||
static av_noinline void check_dmvr(void)
|
||||
{
|
||||
LOCAL_ALIGNED_32(uint16_t, dst0, [DST_BUF_SIZE]);
|
||||
LOCAL_ALIGNED_32(uint16_t, dst1, [DST_BUF_SIZE]);
|
||||
@@ -394,7 +394,7 @@ static void check_dmvr(void)
|
||||
#define BDOF_SRC_SIZE (MAX_PB_SIZE* (BDOF_BLOCK_SIZE + 2))
|
||||
#define BDOF_SRC_OFFSET (MAX_PB_SIZE + 1)
|
||||
#define BDOF_DST_SIZE (BDOF_BLOCK_SIZE * BDOF_BLOCK_SIZE * 2)
|
||||
static void check_bdof(void)
|
||||
static av_noinline void check_bdof(void)
|
||||
{
|
||||
LOCAL_ALIGNED_32(uint8_t, dst0, [BDOF_DST_SIZE]);
|
||||
LOCAL_ALIGNED_32(uint8_t, dst1, [BDOF_DST_SIZE]);
|
||||
@@ -431,7 +431,7 @@ static void check_bdof(void)
|
||||
report("apply_bdof");
|
||||
}
|
||||
|
||||
static void check_vvc_sad(void)
|
||||
static av_noinline void check_vvc_sad(void)
|
||||
{
|
||||
const int bit_depth = 10;
|
||||
VVCDSPContext c;
|
||||
|
||||
Reference in New Issue
Block a user