From 8d5a6110f7e253a525b3d7cd62dafeaf67a9c8f3 Mon Sep 17 00:00:00 2001 From: JamePeng Date: Fri, 15 Apr 2016 12:36:07 +0800 Subject: Y2R: num_tiles should be allowed when its value is 128 (#1669) --- src/core/hw/y2r.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/hw/y2r.cpp') diff --git a/src/core/hw/y2r.cpp b/src/core/hw/y2r.cpp index 48c45564f..083391e83 100644 --- a/src/core/hw/y2r.cpp +++ b/src/core/hw/y2r.cpp @@ -261,7 +261,7 @@ void PerformConversion(ConversionConfiguration& cvt) { ASSERT(cvt.block_alignment != BlockAlignment::Block8x8 || cvt.input_lines % 8 == 0); // Tiles per row size_t num_tiles = cvt.input_line_width / 8; - ASSERT(num_tiles < MAX_TILES); + ASSERT(num_tiles <= MAX_TILES); // Buffer used as a CDMA source/target. std::unique_ptr data_buffer(new u8[cvt.input_line_width * 8 * 4]); -- cgit v1.2.3