psx_gpu->dither_table[1] = dither_table_row(2, -2, 3, -1);
psx_gpu->dither_table[2] = dither_table_row(-3, 1, -4, 0);
psx_gpu->dither_table[3] = dither_table_row(3, -1, 2, -2);
+ psx_gpu->allow_dithering = 1;
psx_gpu->primitive_type = PRIMITIVE_TYPE_UNKNOWN;
{
u32 i, simplified_count;
set_texture(psx_gpu, list[4] >> 16);
- if ((simplified_count = prim_try_simplify_quad_t(siplified_prim, list)))
+ if (!(psx_gpu->render_state_base & RENDER_STATE_DITHER) &&
+ (simplified_count = prim_try_simplify_quad_t(siplified_prim, list)))
{
for (i = 0; i < simplified_count; i++) {
const u32 *list_ = &siplified_prim[i * 4];
{
u32 i, simplified_count;
set_texture(psx_gpu, list[5] >> 16);
- if ((simplified_count = prim_try_simplify_quad_gt(siplified_prim, list)))
+ if (!(psx_gpu->render_state_base & RENDER_STATE_DITHER) &&
+ (simplified_count = prim_try_simplify_quad_gt(siplified_prim, list)))
{
for (i = 0; i < simplified_count; i++) {
const u32 *list_ = &siplified_prim[i * 4];
{
u32 i, simplified_count;
set_texture(psx_gpu, list[4] >> 16);
- if ((simplified_count = prim_try_simplify_quad_t(siplified_prim, list)))
+ if (!(psx_gpu->render_state_base & RENDER_STATE_DITHER) &&
+ (simplified_count = prim_try_simplify_quad_t(siplified_prim, list)))
{
for (i = 0; i < simplified_count; i++) {
const u32 *list_ = &siplified_prim[i * 4];
{
u32 i, simplified_count;
set_texture(psx_gpu, list[5] >> 16);
- if ((simplified_count = prim_try_simplify_quad_gt(siplified_prim, list)))
+ if (!(psx_gpu->render_state_base & RENDER_STATE_DITHER) &&
+ (simplified_count = prim_try_simplify_quad_gt(siplified_prim, list)))
{
for (i = 0; i < simplified_count; i++) {
const u32 *list_ = &siplified_prim[i * 4];
CC = $(CROSS_COMPILE)gcc
-CFLAGS += -DTEXTURE_CACHE_4BPP -DTEXTURE_CACHE_8BPP
+CFLAGS += -DTEXTURE_CACHE_4BPP -DTEXTURE_CACHE_8BPP -DGPU_NEON
CFLAGS += -Wall -ggdb
CFLAGS += -fno-strict-aliasing
CFLAGS += `sdl-config --cflags`
LDLIBS += `sdl-config --libs`
-VPATH += ..
-
ifdef NEON
CFLAGS += -mcpu=cortex-a8 -mfpu=neon -DNEON_BUILD
ASFLAGS = $(CFLAGS)
-OBJ += psx_gpu_arm_neon.o
+OBJ += ../psx_gpu_arm_neon.o
else
CFLAGS += -DNEON_BUILD -DSIMD_BUILD
-OBJ += psx_gpu_simd.o
+OBJ += ../psx_gpu_simd.o
endif
ifndef DEBUG
CFLAGS += -O2 -DNDEBUG
endif
-OBJ += psx_gpu.o psx_gpu_parse.o psx_gpu_main.o
+OBJ += ../psx_gpu_main.o ../../../gpulib/prim.o
all: psx_gpu
psx_gpu: $(OBJ)
+ $(CC) -o $@ $(CFLAGS) $^ $(LDFLAGS) $(LDLIBS)
clean:
$(RM) psx_gpu $(OBJ)