mapi: Now _glapi_get_dispatch_table_size always equal to sizeof(struct _glapi_table) / sizeof(void *)

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>
This commit is contained in:
Yonggang Luo 2023-06-23 13:30:31 +08:00 committed by Marge Bot
parent e72a879de0
commit 035e55f5ac

View 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)