With GLES 3.1, GL 4.5, and many new vendor extensions about to get their
enums added, we jump up to 85k of table.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
print '#include "main/mtypes.h"'
print ''
print 'typedef struct PACKED {'
- print ' uint16_t offset;'
+ print ' uint32_t offset;'
print ' int n;'
print '} enum_elt;'
print ''
{
enum_elt *elt;
- STATIC_ASSERT(sizeof(enum_string_table) < (1 << 16));
-
elt = bsearch(& nr, enum_string_table_offsets,
ARRAY_SIZE(enum_string_table_offsets),
sizeof(enum_string_table_offsets[0]),