Android: track disjoint mip layouts and add Vulkan validation tools

This commit is contained in:
shen
2026-10-15 18:53:45 -07:00
parent 8eb294e7e0
commit a6c3655e21
12 changed files with 546 additions and 47 deletions
+6 -2
View File
@@ -1,9 +1,13 @@
NDK ?= $(or $(ANDROID_NDK_HOME),$(lastword $(sort $(wildcard $(HOME)/Library/Android/sdk/ndk/*))))
.DEFAULT_GOAL := all
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
$(OUT)/t_vk_perf: t_vk_perf.c ../../gfx/vulkan/nvn_vk.c ../../gfx/vulkan/nvn_vk_dispatch.h ../../gfx/vulkan/nvn_vk_mip_layout.h
@mkdir -p $(OUT)
$(CC) $(CFLAGS) -Wl,--gc-sections -Wl,-z,max-page-size=16384 $< -o $@ -landroid -ldl -lm -lz
$(OUT)/t_vk_caps: t_vk_caps.c
@mkdir -p $(OUT)
$(CC) -O2 -g -Wall -Wextra -Werror -Wl,-z,max-page-size=16384 $< -o $@ -lvulkan
.PHONY: all
all: $(OUT)/t_vk_perf
all: $(OUT)/t_vk_perf $(OUT)/t_vk_caps
+107
View File
@@ -0,0 +1,107 @@
#!/usr/bin/env python3
"""Game-free host checks, NDK build, and optional real-device Vulkan regression.
Default: host + ASan/UBSan + Android test binaries, without contacting a device.
--run-device requires an explicit serial; it only pushes these test binaries to
a unique /data/local/tmp directory. It does not install/start the game app.
"""
import argparse
import hashlib
import json
import os
from pathlib import Path
import shlex
import shutil
import subprocess
import time
import uuid
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--output', type=Path, required=True)
parser.add_argument('--ndk', type=Path)
parser.add_argument('--host-only', action='store_true')
parser.add_argument('--run-device', action='store_true')
parser.add_argument('--serial')
args = parser.parse_args()
if args.run_device and (args.host_only or not args.serial):
parser.error('--run-device requires --serial and an Android build')
repo = Path(__file__).resolve().parents[3]
out = args.output.resolve()
out.mkdir(parents=True, exist_ok=False)
report = {'schema': 1, 'passed': False, 'device_contacted': False,
'gpu_executed': False, 'game_tested': False, 'steps': []}
def save():
(out / 'result.json').write_text(json.dumps(report, indent=2) + '\n')
def run(name, command, timeout=120):
print(name, flush=True)
start = time.monotonic()
process = subprocess.run(command, cwd=repo, capture_output=True, text=True, timeout=timeout)
(out / (name + '.log')).write_text(process.stdout + process.stderr)
report['steps'].append({'name': name, 'command': command, 'exit_code': process.returncode,
'elapsed_seconds': round(time.monotonic() - start, 3)})
save()
process.check_returncode()
return process.stdout
save()
try:
candidates = sorted((Path.home() / 'Library/Android/sdk/ndk').glob('*'),
key=lambda p: tuple(int(v) for v in p.name.split('.') if v.isdigit()))
ndk = args.ndk or (Path(os.environ['ANDROID_NDK_HOME']) if os.environ.get('ANDROID_NDK_HOME') else None)
if ndk is None and candidates:
ndk = candidates[-1]
if ndk is None:
raise RuntimeError('Specify --ndk (Vulkan headers are needed even for host-only checks)')
ndk = ndk.resolve()
headers = list(ndk.glob('toolchains/llvm/prebuilt/*/sysroot/usr/include'))
if len(headers) != 1:
raise RuntimeError('Expected one NDK host toolchain under ' + str(ndk))
cc = shlex.split(os.environ.get('HOST_CC', 'clang'))
common = cc + ['-std=c11', '-O1', '-g', '-Wall', '-Wextra', '-Werror', '-idirafter', str(headers[0]),
'dm/android/tests/t_vk_mip_layout.c']
for mode, flags in [('normal', []), ('sanitized', ['-fsanitize=address,undefined', '-fno-omit-frame-pointer'])]:
binary = out / ('mip-' + mode)
run('build-' + mode, common + flags + ['-o', str(binary)])
run('run-' + mode, [str(binary)])
if not args.host_only:
binaries = out / 'android'
run('ndk-build', ['make', '-C', 'dm/android/tests', 'all', 'NDK=' + str(ndk), 'OUT=' + str(binaries)], 180)
report['artifacts_sha256'] = {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in sorted(binaries.iterdir())}
sources = ['dm/gfx/vulkan/nvn_vk.c', 'dm/gfx/vulkan/nvn_vk_mip_layout.h',
'dm/android/tests/t_vk_perf.c', 'dm/android/tests/t_vk_caps.c',
'dm/android/tests/t_vk_mip_layout.c', 'dm/android/tests/Makefile', 'dm/android/tests/run_checks.py']
report['source_sha256'] = {p: hashlib.sha256((repo / p).read_bytes()).hexdigest() for p in sources}
if args.run_device:
adb = shutil.which('adb')
if not adb:
raise RuntimeError('adb is not available')
device = [adb, '-s', args.serial]
report['device_contacted'] = True
run('device-state', device + ['get-state'])
remote = '/data/local/tmp/d2r-checks-' + uuid.uuid4().hex
run('device-mkdir', device + ['shell', 'mkdir', remote])
try:
for name in ('t_vk_caps', 't_vk_perf'):
run('push-' + name, device + ['push', str(binaries / name), remote + '/' + name])
run('chmod-' + name, device + ['shell', 'chmod', '700', remote + '/' + name])
caps = run('device-caps', device + ['shell', remote + '/t_vk_caps'])
report['capabilities'] = json.loads(caps)
report['gpu_executed'] = True
run('device-regression', device + ['shell', remote + '/t_vk_perf'], 180)
finally:
run('device-cleanup', device + ['shell', 'rm', '-rf', remote])
report['passed'] = True
except Exception as exc:
report['error'] = str(exc)
raise
finally:
save()
print('ANDROID_CHECKS_PASS ' + str(out / 'result.json'))
if __name__ == '__main__':
main()
+44
View File
@@ -0,0 +1,44 @@
/* Standalone, game-free Vulkan capability receipt. No private driver, layer,
* window, pipeline, game file or application setting is changed by this probe. */
#include <vulkan/vulkan.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static void json_string(const char *s) {
putchar('"');
for(const unsigned char *p=(const unsigned char *)s;*p;p++) {
if(*p=='"'||*p=='\\')printf("\\%c",*p);
else if(*p<32)printf("\\u%04x",*p);
else putchar(*p);
}
putchar('"');
}
int main(void) {
VkApplicationInfo app={.sType=VK_STRUCTURE_TYPE_APPLICATION_INFO,.pApplicationName="D2R capability probe",.apiVersion=VK_API_VERSION_1_1};
VkInstanceCreateInfo ci={.sType=VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,.pApplicationInfo=&app};VkInstance instance;
VkResult rc=vkCreateInstance(&ci,NULL,&instance);
if(rc!=VK_SUCCESS){fprintf(stderr,"vkCreateInstance: %d\n",rc);return 1;}
uint32_t n=0;rc=vkEnumeratePhysicalDevices(instance,&n,NULL);
if(rc!=VK_SUCCESS||!n){fprintf(stderr,"no physical devices: %d\n",rc);vkDestroyInstance(instance,NULL);return 1;}
VkPhysicalDevice *devices=calloc(n,sizeof *devices);if(!devices)return 1;
rc=vkEnumeratePhysicalDevices(instance,&n,devices);if(rc!=VK_SUCCESS){free(devices);vkDestroyInstance(instance,NULL);return 1;}
printf("{\"schema\":1,\"game_compatibility_verified\":false,\"devices\":[");
for(uint32_t i=0;i<n;i++) {
VkPhysicalDeviceProperties p;VkPhysicalDeviceFeatures f;VkPhysicalDeviceMemoryProperties m;
vkGetPhysicalDeviceProperties(devices[i],&p);vkGetPhysicalDeviceFeatures(devices[i],&f);vkGetPhysicalDeviceMemoryProperties(devices[i],&m);
if(i)putchar(',');printf("{\"name\":");json_string(p.deviceName);
printf(",\"vendor_id\":%u,\"device_id\":%u,\"api_version\":%u,\"driver_version\":%u",p.vendorID,p.deviceID,p.apiVersion,p.driverVersion);
printf(",\"independent_blend\":%u,\"draw_storage\":%u,\"storage_read_without_format\":%u,\"storage_write_without_format\":%u,\"gather_extended\":%u",f.independentBlend,f.fragmentStoresAndAtomics,f.shaderStorageImageReadWithoutFormat,f.shaderStorageImageWriteWithoutFormat,f.shaderImageGatherExtended);
printf(",\"memory_types\":[");
for(uint32_t j=0;j<m.memoryTypeCount;j++){if(j)putchar(',');printf("{\"flags\":%u,\"heap\":%u}",m.memoryTypes[j].propertyFlags,m.memoryTypes[j].heapIndex);}printf("]");
uint32_t ne=0;rc=vkEnumerateDeviceExtensionProperties(devices[i],NULL,&ne,NULL);if(rc!=VK_SUCCESS)return 1;
VkExtensionProperties *e=calloc(ne?ne:1,sizeof *e);if(!e)return 1;
rc=vkEnumerateDeviceExtensionProperties(devices[i],NULL,&ne,e);if(rc!=VK_SUCCESS){free(e);return 1;}
printf(",\"extensions\":[");for(uint32_t j=0;j<ne;j++){if(j)putchar(',');json_string(e[j].extensionName);}printf("]");free(e);
const VkFormat formats[]={VK_FORMAT_R8G8B8A8_UNORM,VK_FORMAT_R16G16B16A16_SFLOAT,VK_FORMAT_D16_UNORM,VK_FORMAT_D24_UNORM_S8_UINT,VK_FORMAT_D32_SFLOAT,VK_FORMAT_D32_SFLOAT_S8_UINT};
printf(",\"formats\":[");
for(unsigned j=0;j<sizeof formats/sizeof *formats;j++){VkFormatProperties fp;vkGetPhysicalDeviceFormatProperties(devices[i],formats[j],&fp);if(j)putchar(',');printf("{\"format\":%u,\"optimal_features\":%u}",formats[j],fp.optimalTilingFeatures);}printf("]}");
}
printf("]}\n");free(devices);vkDestroyInstance(instance,NULL);return 0;
}
+73
View File
@@ -0,0 +1,73 @@
/* Host regression: compare production barriers with an independent per-level
* oracle. A barrier whose oldLayout is stale fails before the oracle updates. */
#include "../../gfx/vulkan/nvn_vk_mip_layout.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
typedef struct {
VkImageLayout actual[64], next;
unsigned base, count, barriers;
} Oracle;
static void barrier(void *ctx,VkImageLayout old,VkImageLayout next,unsigned base,unsigned count) {
Oracle *o=ctx;
assert(count && base>=o->base && base+count<=o->base+o->count && next==o->next);
for(unsigned i=base;i<base+count;i++) {
assert(o->actual[i]==old && old!=next);
o->actual[i]=next;
}
o->barriers++;
}
static void transition(NvnVkMipLayouts *s,Oracle *o,unsigned total,unsigned base,unsigned count,VkImageLayout next) {
VkImageLayout expected[64];memcpy(expected,o->actual,sizeof expected);
for(unsigned i=base;i<base+count;i++)expected[i]=next;
o->base=base;o->count=count;o->next=next;
assert(nvn_vk_mip_transition(s,total,base,count,next,barrier,o));
assert(!memcmp(expected,o->actual,sizeof expected));
for(unsigned i=0;i<total;i++)assert((s->mixed?s->levels[i]:s->uniform)==expected[i]);
}
static unsigned rng=0x91738940;
static unsigned random_u32(void) { rng^=rng<<13;rng^=rng>>17;rng^=rng<<5;return rng; }
int main(void) {
unsigned mask=0;
assert(nvn_vk_mip_mask(16,0,16,&mask)&&mask==65535);
assert(nvn_vk_mip_mask(16,15,1,&mask)&&mask==32768);
assert(!nvn_vk_mip_mask(17,0,1,&mask));
assert(!nvn_vk_mip_mask(16,16,1,&mask));
assert(!nvn_vk_mip_mask(16,1,~0u,&mask));
assert(!nvn_vk_mip_mask(0,0,0,&mask));
const VkImageLayout layouts[]={VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL,VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,VK_IMAGE_LAYOUT_GENERAL};
unsigned runs=0,emitted=0;
for(unsigned total=1;total<=16;total++) {
NvnVkMipLayouts s={0};Oracle o={0};
transition(&s,&o,total,0,total,VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
if(total>1) {
transition(&s,&o,total,0,1,VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL);
transition(&s,&o,total,1,1,VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);
assert(s.mixed);
}
transition(&s,&o,total,0,total,VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL);
assert(!s.mixed);
unsigned before=o.barriers;
transition(&s,&o,total,0,total,VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL);
assert(o.barriers==before);
for(unsigned i=0;i<20000;i++) {
unsigned base=random_u32()%total,count=1+random_u32()%(total-base);
transition(&s,&o,total,base,count,layouts[random_u32()%5]);runs++;
}
NvnVkMipLayouts saved=s;
before=o.barriers;
assert(!nvn_vk_mip_transition(&s,total,total,1,VK_IMAGE_LAYOUT_GENERAL,barrier,&o));
assert(!nvn_vk_mip_transition(&s,total,0,~0u,VK_IMAGE_LAYOUT_GENERAL,barrier,&o));
assert(!nvn_vk_mip_transition(&s,total,0,0,VK_IMAGE_LAYOUT_GENERAL,barrier,&o));
assert(!memcmp(&saved,&s,sizeof s)&&o.barriers==before);
emitted+=o.barriers;
}
NvnVkMipLayouts large={0};Oracle o={0};
transition(&large,&o,32,0,32,VK_IMAGE_LAYOUT_GENERAL);
assert(!nvn_vk_mip_transition(&large,32,0,1,VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,barrier,&o));
transition(&large,&o,32,0,32,VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL);
printf("VK_MIP_LAYOUT_PASS random_transitions=%u barriers=%u invalid_ranges large_image_fallback\n",runs,emitted);
return 0;
}
+63 -1
View File
@@ -4,6 +4,66 @@
#include <assert.h>
static void wait_current(void) { uint64_t ticket=mtl_sub_commit();assert(mtl_wait(ticket,UINT64_MAX)); }
static void mip_policy_checks(void) {
int feedback=G.feedback_layout;G.feedback_layout=0;
int subresources=G.subresources;G.subresources=1;
VTexture t={.serial=9001,.format=VK_FORMAT_R8G8B8A8_UNORM};
t.source.serial=t.serial;t.source.d.target=NVN_TEXTURE_TARGET_2D;t.source.d.levels=4;t.source.L.layers=1;
G.state.rt.n=1;G.state.rt.color[0]=&t.source;G.state.rt.has_cview[0]=1;
G.state.rt.cview[0]=(view_t){.set_levels=1,.base_level=1,.nlevels=1};
TSlot *slots=G.tslot;size_t capacity=G.texture_slots;int pool_n=G.texture_pool_n;
G.tslot=calloc(2,sizeof *G.tslot);assert(G.tslot);G.texture_slots=2;G.texture_pool_n=2;
G.tslot[1]=(TSlot){.live=1,.texture=t.source,.has_view=1,.view={.set_levels=1,.base_level=0,.nlevels=1}};
VShader vs={0},ps={0};vs.h.nb=ps.h.nb=1;ps.h.stage=1;vs.b[0].kind=ps.b[0].kind=4;
G.state.tex[0][0]=G.state.tex[1][0]=1;G.nimage_uses=0;
collect_image_uses(&vs);assert(disjoint_mip_sampling(&t));
/* Another stage's overlapping view must disable the optimization for both. */
G.tslot[1].view.base_level=1;collect_image_uses(&ps);assert(!disjoint_mip_sampling(&t));
G.nimage_uses=0;G.tslot[1].view.base_level=0;collect_image_uses(&vs);
G.image_uses[0].roles|=2;assert(!disjoint_mip_sampling(&t));G.image_uses[0].roles=1;
G.image_uses[0].roles|=4;assert(!disjoint_mip_sampling(&t));G.image_uses[0].roles=1;
G.feedback_layout=1;assert(!disjoint_mip_sampling(&t));G.feedback_layout=0;
G.tslot[1].has_view=0;G.nimage_uses=0;collect_image_uses(&vs);assert(!disjoint_mip_sampling(&t));
G.tslot[1].has_view=1;G.nimage_uses=0;collect_image_uses(&vs);assert(disjoint_mip_sampling(&t));
G.state.rt.n=2;G.state.rt.color[1]=&t.source;G.state.rt.has_cview[1]=0;assert(!disjoint_mip_sampling(&t));G.state.rt.n=1;
t.source.L.layers=2;assert(!disjoint_mip_sampling(&t));t.source.L.layers=1;
G.subresources=0;assert(!disjoint_mip_sampling(&t));G.subresources=subresources;
free(G.tslot);G.tslot=slots;G.texture_slots=capacity;G.texture_pool_n=pool_n;
memset(&G.state.rt,0,sizeof G.state.rt);G.state.tex[0][0]=G.state.tex[1][0]=0;G.nimage_uses=0;G.feedback_layout=feedback;
}
/* Real GPU readback verifies both mips survive split layouts and a later
* whole-image copy transition; this fixture needs no game/shader assets. */
static void mip_gpu_checks(void) {
mip_policy_checks();
VTexture t={.serial=9002,.format=VK_FORMAT_R8G8B8A8_UNORM,.width=8,.height=8,.depth=1};
t.source.d.levels=4;t.source.L.layers=1;
VkImageCreateInfo ci={.sType=VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,.imageType=VK_IMAGE_TYPE_2D,.format=t.format,
.extent={8,8,1},.mipLevels=4,.arrayLayers=1,.samples=VK_SAMPLE_COUNT_1_BIT,.tiling=VK_IMAGE_TILING_OPTIMAL,
.usage=VK_IMAGE_USAGE_TRANSFER_SRC_BIT|VK_IMAGE_USAGE_TRANSFER_DST_BIT|VK_IMAGE_USAGE_SAMPLED_BIT|VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT};
CHECK(vkCreateImage(G.device,&ci,NULL,&t.image));VkMemoryRequirements req;vkGetImageMemoryRequirements(G.device,t.image,&req);
VkMemoryAllocateInfo ai={.sType=VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO,.allocationSize=req.size,.memoryTypeIndex=memory_type(req.memoryTypeBits,VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT)};
CHECK(vkAllocateMemory(G.device,&ai,NULL,&t.memory));CHECK(vkBindImageMemory(G.device,t.image,t.memory,0));
VBuffer readback=buffer_make(320,VK_BUFFER_USAGE_TRANSFER_DST_BIT);
mtl_sub_begin();texture_transition(&t,VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
for(unsigned i=0;i<4;i++) {
VkClearColorValue value={.float32={i==0?1:0,i==1?1:0,0,1}};
VkImageSubresourceRange range={VK_IMAGE_ASPECT_COLOR_BIT,i,1,0,1};
vkCmdClearColorImage(G.batch->command,t.image,VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,&value,1,&range);
}
texture_transition_levels(&t,0,1,VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL);
texture_transition_levels(&t,1,1,VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);assert(t.layouts.mixed);
texture_transition_levels(&t,0,1,VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);
texture_transition_levels(&t,1,1,VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL);
texture_transition(&t,VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL);assert(!t.layouts.mixed);
for(unsigned i=0;i<2;i++) {
VkBufferImageCopy copy={.bufferOffset=i?256:0,.imageSubresource={VK_IMAGE_ASPECT_COLOR_BIT,i,0,1},.imageExtent={8>>i,8>>i,1}};
vkCmdCopyImageToBuffer(G.batch->command,t.image,t.layouts.uniform,readback.b,1,&copy);
}
wait_current();
for(unsigned i=0;i<80;i++){const uint8_t *p=readback.map+4*i;assert(p[0]==(i<64?255:0)&&p[1]==(i<64?0:255)&&p[2]==0&&p[3]==255);}
buffer_free(&readback);vkDestroyImage(G.device,t.image,NULL);vkFreeMemory(G.device,t.memory,NULL);
fprintf(stderr,"VK_MIP_GPU_PASS disjoint_views cross_stage_overlap storage_fallback split_layouts preserved_pixels\n");
}
static void copy_input(uint32_t *guest,VBuffer *readback) {
uint64_t offset=0;VPool *input=input_read((uint64_t)(uintptr_t)guest,16,&offset);
all_barrier();VkBufferCopy copy={offset,0,16};vkCmdCopyBuffer(G.batch->command,input->v.b,readback->b,1,&copy);
@@ -83,6 +143,7 @@ static double input_frames(int frames) {
mtl_finish();double ms=ms_since(t);mtl_pool_del(guest);free(guest);return ms;
}
int main(int argc,char **argv) {
if(argc>1 && !strcmp(argv[1],"mips")){mtl_init();mip_gpu_checks();return 0;}
if(argc>1 && !strcmp(argv[1],"bench"))return bench_main();
if(argc>1 && !strcmp(argv[1],"input")){setenv("DM_VK_POOL_COPY","1",1);mtl_init();
double recycled=input_frames(60);temporary_keep_bytes=0;double fresh=input_frames(60);
@@ -143,5 +204,6 @@ int main(int argc,char **argv) {
mtl_finish();mtl_sub_begin();VBuffer *recycled=temporary(5000,VK_BUFFER_USAGE_TRANSFER_SRC_BIT);VkBuffer handle=recycled->b;assert(recycled->size==8192);wait_current();
mtl_finish();mtl_sub_begin();assert(temporary(8192,VK_BUFFER_USAGE_TRANSFER_DST_BIT)->b==handle);wait_current();mtl_finish();
mtl_pool_del(guest);mtl_finish();buffer_free(&first);buffer_free(&second);free(guest);
fprintf(stderr,"VK_PERF_TEST_PASS snapshots collisions GPU_writebacks fences ring_rotation gpu_timestamps events descriptor_chunks capacity_split temporary_recycle\n");return 0;
mip_gpu_checks();
fprintf(stderr,"VK_PERF_TEST_PASS snapshots collisions GPU_writebacks fences ring_rotation gpu_timestamps events descriptor_chunks capacity_split temporary_recycle mip_layouts\n");return 0;
}