Skip to content

OpenCL: printf in nir

Jesse Natalie requested to merge jenatali/mesa:upstream/printf into master

This small series adds a printf intrinsic which takes a format string deref as the first arg, and a deref to a struct full of the args as the second.

It also adds a lowering pass which converts that intrinsic to a series of SSBO writes -- an atomic add to a size counter, followed by dumping args into the buffer.

Edited by Jesse Natalie

Merge request reports