Skip to content

nvk,nak: Fill out QMDs in NAK

Faith Ekstrand requested to merge gfxstrand/mesa:nak/qmd into main

This is similar to the way that NIL fills out texture headers. There's a helper that takes a nak_shader_info and a second struct with information from the driver such as the QMD address and global workgroup size and spits out a QMD. The Rust code is a bit more verbose but ultimately more readable. It's also probably more reliable as we can use traits to ensure that every single field gets set for every version of the QMD that we support.

Merge request reports