From f82c62507c67309b9c020a54f6c848853d39febe Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 6 Oct 2012 23:36:06 +0300 Subject: psx_gpu: standalone test build + tweaks --- plugins/gpu_neon/psx_gpu/tests/Makefile | 26 ++++++++++++++++++++++++ plugins/gpu_neon/psx_gpu/tests/psx_dump_check.sh | 8 ++++++++ 2 files changed, 34 insertions(+) create mode 100644 plugins/gpu_neon/psx_gpu/tests/Makefile create mode 100755 plugins/gpu_neon/psx_gpu/tests/psx_dump_check.sh (limited to 'plugins/gpu_neon/psx_gpu/tests') diff --git a/plugins/gpu_neon/psx_gpu/tests/Makefile b/plugins/gpu_neon/psx_gpu/tests/Makefile new file mode 100644 index 0000000..210f44d --- /dev/null +++ b/plugins/gpu_neon/psx_gpu/tests/Makefile @@ -0,0 +1,26 @@ +CC = $(CROSS_COMPILE)gcc +CFLAGS += -DTEXTURE_CACHE_4BPP -DTEXTURE_CACHE_8BPP +CFLAGS += -Wall -ggdb + +CFLAGS += `sdl-config --cflags` +LDFLAGS += `sdl-config --libs` + +VPATH += .. + +ifdef NEON +CFLAGS += -mcpu=cortex-a8 -mfpu=neon -DNEON_BUILD +ASFLAGS = $(CFLAGS) +OBJ += psx_gpu_arm_neon.o +endif +ifndef DEBUG +CFLAGS += -O2 -fno-strict-aliasing +endif + +OBJ += psx_gpu.o psx_gpu_parse.o psx_gpu_main.o + +all: psx_gpu + +psx_gpu: $(OBJ) + +clean: + $(RM) psx_gpu $(OBJ) diff --git a/plugins/gpu_neon/psx_gpu/tests/psx_dump_check.sh b/plugins/gpu_neon/psx_gpu/tests/psx_dump_check.sh new file mode 100755 index 0000000..25d0725 --- /dev/null +++ b/plugins/gpu_neon/psx_gpu/tests/psx_dump_check.sh @@ -0,0 +1,8 @@ +truncate --size 0 $1 +for dump in gpu_dumps_all/* +do + if [ -e $dump/dump3.dump -a -e $dump/list.dump ]; then + ./psx_gpu $dump/dump3.dump $dump/list.dump -n >> $1 + echo "Mismatches in $dump: $?" + fi +done -- cgit v1.2.3