From 035e55f5aca9ef2da59bc834c2c0b8c18527e2e2 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Fri, 23 Jun 2023 13:30:31 +0800 Subject: [PATCH] mapi: Now _glapi_get_dispatch_table_size always equal to sizeof(struct _glapi_table) / sizeof(void *) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yonggang Luo Reviewed-by: Corentin Noël Part-of: --- src/mapi/glapi/tests/check_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapi/glapi/tests/check_table.cpp b/src/mapi/glapi/tests/check_table.cpp index 52fa94d01a6..9b1bc1593ef 100644 --- a/src/mapi/glapi/tests/check_table.cpp +++ b/src/mapi/glapi/tests/check_table.cpp @@ -108,7 +108,7 @@ TEST(GetProcAddress, QueriedDispatchSizeBigEnough) * table. This is the size of the static table with some extra entries for * drivers to use for extensions that the core does not know about. */ - EXPECT_LT(table_entries, _glapi_get_dispatch_table_size()); + EXPECT_EQ(table_entries, _glapi_get_dispatch_table_size()); } TEST(GetProcAddress, KnownDispatchOffsetsAreConsistent)