Xorg: simd changes

ulab-next-nosound
Jay Sorg 10 years ago
parent cdb2fff298
commit bc7a6b9bc6

@ -14,6 +14,8 @@ rdpTrapezoids.o rdpXv.o rdpSimd.o
CFLAGS = -g -O2 -Wall -fPIC -I/usr/include/xorg -I/usr/include/pixman-1 \
-I../../../common
;CFLAGS += -DSIMD_USE_ACCEL=1
LDFLAGS =
LIBS =

@ -175,9 +175,9 @@ loop_y:
; save rdx
mov [rsp + 48], rdx
prefetchnta 4096[rsp + 0] ; y
prefetchnta 1024[rsp + 16] ; u
prefetchnta 1024[rsp + 24] ; v
;prefetchnta 4096[rsp + 0] ; y
;prefetchnta 1024[rsp + 16] ; u
;prefetchnta 1024[rsp + 24] ; v
loop_x:

@ -175,9 +175,9 @@ loop_y:
; save rdx
mov [rsp + 48], rdx
prefetchnta 4096[rsp + 0] ; y
prefetchnta 1024[rsp + 16] ; u
prefetchnta 1024[rsp + 24] ; v
;prefetchnta 4096[rsp + 0] ; y
;prefetchnta 1024[rsp + 16] ; u
;prefetchnta 1024[rsp + 24] ; v
loop_x:

@ -44,6 +44,14 @@ int g_simd_use_accel = 1;
#define SIMD_USE_ACCEL 0
#endif
#if SIMD_USE_ACCEL
#if defined(__x86_64__) || defined(__AMD64__) || defined (_M_AMD64)
#include "amd64/funcs_amd64.h"
#elif defined(__x86__) || defined(_M_IX86) || defined(__i386__)
#include "x86/funcs_x86.h"
#endif
#endif
#define LOG_LEVEL 1
#define LLOGLN(_level, _args) \
do { if (_level < LOG_LEVEL) { ErrorF _args ; ErrorF("\n"); } } while (0)

@ -624,14 +624,6 @@ xrdpVidQueryImageAttributes(ScrnInfoPtr pScrn, int id,
return size;
}
#if XV_USE_ACCEL
#if defined(__x86_64__) || defined(__AMD64__) || defined (_M_AMD64)
#include "amd64/funcs_amd64.h"
#elif defined(__x86__) || defined(_M_IX86) || defined(__i386__)
#include "x86/funcs_x86.h"
#endif
#endif
/*****************************************************************************/
Bool
rdpXvInit(ScreenPtr pScreen, ScrnInfoPtr pScrn)

@ -170,9 +170,9 @@ loop_y:
; save edx
mov [esp + 24], edx
prefetchnta 4096[esp + 0] ; y
prefetchnta 1024[esp + 8] ; u
prefetchnta 1024[esp + 12] ; v
;prefetchnta 4096[esp + 0] ; y
;prefetchnta 1024[esp + 8] ; u
;prefetchnta 1024[esp + 12] ; v
loop_x:

@ -170,9 +170,9 @@ loop_y:
; save edx
mov [esp + 24], edx
prefetchnta 4096[esp + 0] ; y
prefetchnta 1024[esp + 8] ; u
prefetchnta 1024[esp + 12] ; v
;prefetchnta 4096[esp + 0] ; y
;prefetchnta 1024[esp + 8] ; u
;prefetchnta 1024[esp + 12] ; v
loop_x:

Loading…
Cancel
Save