[Mesa-dev] [PATCH 1/2] anv: pipeline: use NIR macros to apply passes

Matt Turner mattst88 at gmail.com
Tue Aug 30 17:50:43 UTC 2016


On Tue, Aug 30, 2016 at 10:24 AM, Lionel Landwerlin
<llandwerlin at gmail.com> wrote:
> It seems the i965 GL driver uses macros in most places and I found it pretty
> handy to be able to put a printf in a single file (nir.h) to compare the
> passes applied between the 2 drivers.

It would be nice to have the NIR equivalent of INTEL_DEBUG=optimizer,
where each pass that makes progress prints the resulting IR to a file,
for easy diffing. Take a look at the OPT macro in brw_fs.cpp for
example.


More information about the mesa-dev mailing list