Android: NaN-free float color outputs against the top-of-screen flicker blocks; TBDR clears; mprotect ENOMEM fix
- 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>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
3c25cd89fc
commit
1ceeeaba77
@@ -1,7 +1,7 @@
|
||||
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
|
||||
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
|
||||
|
||||
@@ -126,7 +126,7 @@ int main(int argc,char **argv) {
|
||||
VkDescriptorSetLayoutCreateInfo layout_info={.sType=VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO,.bindingCount=1,.pBindings=&binding};
|
||||
VShader shader={0};shader.h.nb=1;shader.b[0].type=VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER;
|
||||
CHECK(vkCreateDescriptorSetLayout(G.device,&layout_info,NULL,&shader.layout));
|
||||
mtl_sub_begin();for(unsigned i=0;i<8200;i++)assert(shader_set_allocate(&shader));assert(G.batch->nextra_descriptors==1);
|
||||
mtl_sub_begin();for(unsigned i=0;i<8200;i++)assert(shader_set_allocate(&shader,0));assert(G.batch->nextra_descriptors==1);
|
||||
/* Capacity splits keep the logical fence reserved for the final piece. */
|
||||
uint64_t before=G.fence;G.batch->ncounter=3000;
|
||||
for(int i=0;i<3000;i++)G.batch->counter_ops[i]=(CounterOp){0,0,0};
|
||||
|
||||
Reference in New Issue
Block a user