# VIRTIO_GPU_RESOURCES_CONTRACT (K2206-K2210) ## K2206 Invariant Kaynak RAM ve scanout boyu taşmasızdır (`virtio_gpu.resources`). 1. Creating a 2D GPU resource and attaching backing memory must verify checked arithmetic (`width * bytes_per_pixel <= stride` and `stride * height == backing_bytes`) within `MAX_RESOURCE_BACKING_BYTES` (`16 MiB`) and `MAX_BACKING_PAGES` (`4096`). 2. A valid 2D RGBA resource ("640x480 RGBA kaynak", `width = 640`, `height = 480`, `stride = 2560`, `backing_bytes = 1_228_800`, `backing_pages = 300`) produces a deterministic resource binding digest and transitions the coordinator to `ResourcePhase::ScanoutAttached`. 3. Any width, height, or stride overflow ("Width height stride overflow"), unaligned stride, mismatched backing byte/page count, or unsupported pixel format must be rejected before the resource is presented to the device ("Bozuk kaynak aygıta sunulmaz"). 4. Runtime symbol: `os_virtio_gpu_resources`.