diff options
author | Jason Ekstrand <[email protected]> | 2016-06-10 12:42:52 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-06-10 13:21:07 -0700 |
commit | 8d37556ec9d7fbbffc5497388a52998ae4fe75de (patch) | |
tree | 66915123a3c8ba3be16b550d8268588cb17d3bae /src/gallium/auxiliary/tgsi/tgsi_info.h | |
parent | 9ed0d9dd06414b30d28d7d1301a980784e22d8d6 (diff) |
anv/entrypoints: Rework #if guards
This reworks the #if guards a bit. When Emil originally wrote them, he
just guarded everything. However, part of what anv_entrypoints_gen.py
generates is a hash table for looking up entrypoints based on their name.
This table *cannot* get out of sync between C and python regardless of
preprocessor flags. In order to prevent this, this commit makes us use
void pointers in the dispatch table for those entrypoints which aren't
available. This means that the dispatch table size and entry order is
constant and it should never get out-of-sync with the python.
Signed-off-by: Jason Ekstrand <[email protected]>
Acked-by: Emil Velikov <[email protected]>
Cc: "12.0" <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_info.h')
0 files changed, 0 insertions, 0 deletions