From 6f80f4f1a2a54c4fc5cb43a5db777004b70f71a7 Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Wed, 14 Dec 2022 13:12:03 +0200 Subject: [PATCH] [mtt] Fix ref building for 32x64 cus --- src/cu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cu.c b/src/cu.c index 6b4f483d..6ed2f1b7 100644 --- a/src/cu.c +++ b/src/cu.c @@ -498,7 +498,8 @@ int uvg_count_available_edge_cus(const cu_loc_t* const cu_loc, const lcu_t* cons int amount = 0; if(left) { - if (cu_loc->local_y == 0 && cu_loc->local_x == 32 && cu_loc->height == 32 && cu_loc->width == 32) return 8; + const cu_info_t* cu = LCU_GET_CU_AT_PX(lcu, cu_loc->local_x, cu_loc->local_y); + if (cu_loc->local_y == 0 && cu_loc->local_x == 32 && cu->log2_height == 6 && cu->log2_width == 6) return 8; while (cu_loc->local_y + amount < LCU_WIDTH && LCU_GET_CU_AT_PX(lcu, cu_loc->local_x - TR_MIN_WIDTH, cu_loc->local_y + amount)->type != CU_NOTSET) { amount += TR_MIN_WIDTH; }