render_engine.sg is the T23 sprint — the pixel rasterizer that bridges CSS layout to the framebuffer. Reads layout boxes (x, y, w, h) from layout_buf @0x5C0000, renders rectangular regions to framebuffer @0x600000 via pixel fill. Stores render stats (box_count, pixel_count) at render_stats_buf @0x610000. 3-box test: 100x50 + 100x60 + 80x40 = 14200 total pixels. RENDER-PASS 7/7. 5208 B arm-el0.
Pixel rasterizer
render_engine.sg
Layout→framebuffer pixel fill — reads layout boxes from
layout_buf (output of css_layout.sg T22), iterates each box's (x, y, w, h) rectangle and fills the corresponding framebuffer region at @0x600000. Tracks box_count (number of boxes rendered) and pixel_count (total pixels written) in render_stats_buf. This is the bottom of the browser render pipeline: html_tokenizer → dom_builder → style_resolver → css_layout → render_engine → framebuffer pixels. RENDER-PASS 7/7.