We already have all this information available to us, so let's use it rather than duplicating code left and right. This is obviously a maintainability win (and means there are less places for things to wrong). But almost more important is simplifying the compiler backend specific ABI, which will be a win when wiring in Bifrost support.
Alyssa Rosenzweig (4): panfrost: Use NIR helper invocations info panfrost: Use nir_gather_info information about discards panfrost: Don't DIY point size/coord fields panfrost: Compute I/O counts from shader_info src/gallium/drivers/panfrost/pan_assemble.c | 28 +++++++++++++-------- src/gallium/drivers/panfrost/pan_context.c | 2 +- src/gallium/drivers/panfrost/pan_context.h | 3 +++ src/panfrost/midgard/compiler.h | 3 --- src/panfrost/midgard/midgard_compile.c | 7 ------ src/panfrost/midgard/midgard_compile.h | 7 ------ 6 files changed, 22 insertions(+), 28 deletions(-) -- 2.20.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev