diff options
author | Luca Barbieri <luca@luca-barbieri.com> | 2010-04-02 04:48:42 +0200 |
---|---|---|
committer | Luca Barbieri <luca@luca-barbieri.com> | 2010-04-02 06:16:30 +0200 |
commit | 52e9b990a192a9329006d5f7dd2ac222effea5a5 (patch) | |
tree | 18b64892f9384a5a5b94d66803d1465d071e53f0 /src/gallium/drivers/trace/tr_screen.h | |
parent | 6259264c57537896d72158f811674a192c6a1596 (diff) |
gallium/util: load s3tc on demand
This changes the S3TC function pointers to be initialized to stubs
that load the S3TC library and then delegate to the real functions.
If the S3TC library fails to load, the function pointers are replaced
with a "nop" function.
The code is also changed to attempt to load the library only one time.c
Note that unlike checking for a flag, this method has no performance
cost at all.
The use of the "nop" functions also allows to avoid most checks, that
are only preserved when the function does non-trivial work.
Diffstat (limited to 'src/gallium/drivers/trace/tr_screen.h')
0 files changed, 0 insertions, 0 deletions