- Shader translator (Vulkan pack only): pixel shaders store 0 instead of NaN in float color outputs (XLATE_NAN_OUT=0 disables). ps_foliage occasionally writes NaN pixels on Adreno; the downsample / bloom chain spread them into blocks. Float min/max/clamp use NMin/NMax/NClamp like Maxwell FMNMX / .SAT (XLATE_NAN_MINMAX=0 disables). - Vulkan backend: pending full clears become loadOp=CLEAR (DM_NVN_TBDR=0 disables); TBDR / store profile stats; per-batch command pools and query reset. - Trace diagnostics: NaN / Inf scan of float targets (DM_VK_NANSCAN_PS, DM_VK_NANSCAN_BOX), burst readback of the top rows (DM_VK_BURST*). - nvn_dirty: protection unit max(pagesize, 16K) to stay under the VMA limit (mprotect ENOMEM crash); log the process mapping count. - Upload-MB stat underflow fix; t_vk_perf test fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
658 B
Makefile
10 lines
658 B
Makefile
NDK ?= $(or $(ANDROID_NDK_HOME),$(lastword $(sort $(wildcard $(HOME)/Library/Android/sdk/ndk/*))))
|
|
CC := $(wildcard $(NDK)/toolchains/llvm/prebuilt/*/bin)/aarch64-linux-android33-clang
|
|
OUT ?= ../build/tests
|
|
CFLAGS = -O1 -g -Wall -Wno-unused-function -ffunction-sections -fdata-sections -I../../gfx/nvn -I../../gfx/nvn/include -include ../../host/compat/linux/compat_linux.h -I../../host/compat/linux/include -I../../host
|
|
$(OUT)/t_vk_perf: t_vk_perf.c ../../gfx/vulkan/nvn_vk.c ../../gfx/vulkan/nvn_vk_dispatch.h
|
|
@mkdir -p $(OUT)
|
|
$(CC) $(CFLAGS) -Wl,--gc-sections -Wl,-z,max-page-size=16384 $< -o $@ -landroid -ldl -lm -lz
|
|
.PHONY: all
|
|
all: $(OUT)/t_vk_perf
|