src/video/SDL_blit_N.c
changeset 6165 b7347e716ab6
parent 6138 4c64952a58fb
child 6281 e46d6f4b469e
equal deleted inserted replaced
6164:67f122d8284f 6165:b7347e716ab6
    26 #include "SDL_blit.h"
    26 #include "SDL_blit.h"
    27 
    27 
    28 /* Functions to blit from N-bit surfaces to other surfaces */
    28 /* Functions to blit from N-bit surfaces to other surfaces */
    29 
    29 
    30 #if SDL_ALTIVEC_BLITTERS
    30 #if SDL_ALTIVEC_BLITTERS
       
    31 #ifdef HAVE_ALTIVEC_H
       
    32 #include <altivec.h>
       
    33 #endif
    31 #define assert(X)
    34 #define assert(X)
    32 #ifdef __MACOSX__
    35 #ifdef __MACOSX__
    33 #include <sys/sysctl.h>
    36 #include <sys/sysctl.h>
    34 static size_t
    37 static size_t
    35 GetL3CacheSize(void)
    38 GetL3CacheSize(void)
   106      *  leave alpha with a zero mask, but we should still swizzle the bits.
   109      *  leave alpha with a zero mask, but we should still swizzle the bits.
   107      */
   110      */
   108     /* ARGB */
   111     /* ARGB */
   109     const static const struct SDL_PixelFormat default_pixel_format = {
   112     const static const struct SDL_PixelFormat default_pixel_format = {
   110         0, NULL, 0, 0,
   113         0, NULL, 0, 0,
       
   114         {0, 0},
       
   115         0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
   111         0, 0, 0, 0,
   116         0, 0, 0, 0,
   112         16, 8, 0, 24,
   117         16, 8, 0, 24,
   113         0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
       
   114         0, NULL
   118         0, NULL
   115     };
   119     };
   116     if (!srcfmt) {
   120     if (!srcfmt) {
   117         srcfmt = &default_pixel_format;
   121         srcfmt = &default_pixel_format;
   118     }
   122     }