Xorg: simd changes

This commit is contained in:
Jay Sorg 2014-10-09 19:42:29 -07:00
parent cdb2fff298
commit bc7a6b9bc6
7 changed files with 22 additions and 20 deletions

View File

@ -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 =

View File

@ -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:

View File

@ -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:

View File

@ -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)

View File

@ -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)

View File

@ -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:

View File

@ -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: