mapi: Now _glapi_get_dispatch_table_size always equal to sizeof(struct _glapi_table...
authorYonggang Luo <luoyonggang@gmail.com>
Fri, 23 Jun 2023 05:30:31 +0000 (13:30 +0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 27 Jun 2023 11:38:59 +0000 (11:38 +0000)
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23822>

src/mapi/glapi/tests/check_table.cpp

index 52fa94d..9b1bc15 100644 (file)
@@ -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)