From 56e89c9e4fb00b5c2af4536d4c50294608d0c46c Mon Sep 17 00:00:00 2001 From: Radosław Kujawa Date: Sun, 2 Aug 2026 22:04:06 +0200 Subject: Performance improvements, support userspace simulators --- configs/darwin-verite-sim | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 configs/darwin-verite-sim (limited to 'configs/darwin-verite-sim') diff --git a/configs/darwin-verite-sim b/configs/darwin-verite-sim new file mode 100644 index 0000000..505444b --- /dev/null +++ b/configs/darwin-verite-sim @@ -0,0 +1,36 @@ +# Rendition Verite driver over the userspace simulator on macOS +# +# Build the simulator first: gmake -C $(WS3DGL_SIM) +# Then here: gmake darwin-verite-sim +# Run examples with: VERITE_UCODE=sim ./examples/cube +# +# (the simulator ignores the microcode; the driver only requires the +# variable to be set) + +include $(TOP)/configs/default + +CONFIG_NAME = darwin-verite-sim + +CC = cc +CXX = c++ + +WS3DGL_SIM ?= $(abspath $(TOP)/../ws3dgl-sim) + +CFLAGS = -O2 -fsigned-char -fno-strict-aliasing -ffast-math -g -MMD -MP \ + -I$(TOP)/src/mesa/ppc +CXXFLAGS = $(CFLAGS) + +MKDEP = true + +MKLIB_OPTIONS = -static +GL_LIB_NAME = libGL.a +OSMESA_LIB_NAME = libOSMesa.a + +SRC_DIRS = mesa +DRIVER_DIRS = verite-sim +PROGRAM_DIRS = + +# libv3dsim carries its own Metal/Cocoa/MoltenVK dependencies +GL_LIB_DEPS = +APP_LIB_DEPS = -L$(LIB_DIR) -lGL -lm \ + -L$(WS3DGL_SIM)/lib -lv3dsim -Wl,-rpath,$(WS3DGL_SIM)/lib -- cgit