X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fdrawpix.h;h=971d258f18192c0fd9fc9a0579b5f575515ec7d2;hb=aab0ea935290cdbf6c74e4d001d4bbc8178fc14a;hp=8ffb1a6d884706aa4fe0c3d2c54f16787926d77e;hpb=3d36d6b4cf735e93a6ae5eadf28e671252fb5303;p=mesa.git diff --git a/src/mesa/main/drawpix.h b/src/mesa/main/drawpix.h index 8ffb1a6d884..971d258f181 100644 --- a/src/mesa/main/drawpix.h +++ b/src/mesa/main/drawpix.h @@ -26,31 +26,14 @@ #define DRAWPIX_H -#include "main/mtypes.h" +#include "compiler.h" +#include "mfeatures.h" +struct _glapi_table; -#if FEATURE_drawpix - -#define _MESA_INIT_DRAWPIX_FUNCTIONS(driver, impl) \ - do { \ - (driver)->DrawPixels = impl ## DrawPixels; \ - (driver)->CopyPixels = impl ## CopyPixels; \ - (driver)->Bitmap = impl ## Bitmap; \ - } while (0) extern void _mesa_init_drawpix_dispatch(struct _glapi_table *disp); -#else /* FEATURE_drawpix */ - -#define _MESA_INIT_DRAWPIX_FUNCTIONS(driver, impl) do { } while (0) - -static INLINE void -_mesa_init_drawpix_dispatch(struct _glapi_table *disp) -{ -} - -#endif /* FEATURE_drawpix */ - #endif /* DRAWPIX_H */