Skip to content

Commit

Permalink
gpu_unai: switch back to older DIV_MULTINV behavior
Browse files Browse the repository at this point in the history
caused polygon "cracks" if compiled on gcc 10.2 (devkitARM release 55),
but seems ok on gcc 11.4 or gcc 14.2 (devkitARM release 65)

#852
  • Loading branch information
notaz committed Nov 17, 2024
1 parent f6ede72 commit 3d7a4cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.libretro
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ else ifeq ($(platform), ctr)
endif
TARGET := $(TARGET_NAME)_libretro_ctr.a
CFLAGS += -DARM11 -D_3DS -D__3DS__
CFLAGS += -DNO_DYLIB -DGPU_UNAI_USE_FLOATMATH -DGPU_UNAI_USE_FLOAT_DIV_MULTINV
CFLAGS += -DGPU_UNAI_USE_FLOATMATH -DGPU_UNAI_USE_FLOAT_DIV_MULTINV
CFLAGS += -DGPU_UNAI_USE_FLOAT_DIV_MULTINV_FOR_ONE # needed on some compilers?
CFLAGS += -march=armv6k -mtune=mpcore -mfloat-abi=hard -marm -mfpu=vfp -mtp=soft
CFLAGS += -mword-relocations
CFLAGS += -fomit-frame-pointer
Expand All @@ -367,6 +368,7 @@ else ifeq ($(platform), ctr)
CFLAGS += -DHAVE_UNISTD_H
CFLAGS += -DZ7_DECL_Int32_AS_long
CFLAGS += -DUSE_CTRULIB_2
CFLAGS += -DNO_DYLIB

OBJS += deps/arm-mem/memcpymove-v6l.o
OBJS += deps/arm-mem/memset-v6l.o
Expand Down

0 comments on commit 3d7a4cf

Please sign in to comment.