Fixed building on various versions of GCC - YUV MMX code is disabled for now

This commit is contained in:
Sam Lantinga 2017-08-07 10:28:59 -07:00
parent 56c21e656b
commit 41065dbd28
4 changed files with 38 additions and 8 deletions

View file

@ -86,15 +86,11 @@
#include "SDL_video.h"
#include "SDL_cpuinfo.h"
#include "SDL_yuv_sw_c.h"
#include "SDL_yuv_mmx_c.h"
/* The colorspace conversion functions */
/* !!! FIXME: this broke on Clang (if it wasn't broken _before_) in https://hg.libsdl.org/SDL/rev/2ee7d2fa299b */
#if (__GNUC__ > 2) && defined(__i386__) && __OPTIMIZE__ && SDL_ASSEMBLY_ROUTINES && !defined(__clang__)
#define USE_MMX_ASSEMBLY 1
#endif
#ifdef USE_MMX_ASSEMBLY
extern void Color565DitherYV12MMX1X(int *colortab, Uint32 * rgb_2_pix,
unsigned char *lum, unsigned char *cr,