MCPcopy Create free account
hub / github.com/Ruddle/Fomos / cmd_create_surface

Function cmd_create_surface

bootloader/kernel/src/drivers/virtio_gpu.rs:315–328  ·  view source on GitHub ↗
(buffer: &mut Vec<u32>, handle: u32, format: VirglFormats)

Source from the content-addressed store, hash-verified

313 }
314
315 fn cmd_create_surface(buffer: &mut Vec<u32>, handle: u32, format: VirglFormats) {
316 let len = 5;
317 buffer.push(
318 (len << 16)
319 | ((VirglObjectType::VIRGL_OBJECT_SURFACE as u32) << 8)
320 | Cmd3d::VIRGL_CCMD_CREATE_OBJECT as u32,
321 );
322 //Buffer select
323 buffer.push(handle);
324 buffer.push(handle);
325 buffer.push(format as u32);
326 buffer.push(0);
327 buffer.push(0);
328 }
329
330 let res_handle = 2;
331

Callers 1

driveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected