OSDN Git Service

nir/print: bit of state refactoring
authorRob Clark <robclark@freedesktop.org>
Tue, 15 Sep 2015 22:50:41 +0000 (18:50 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 16 Sep 2015 14:15:17 +0000 (10:15 -0400)
commit840df72f9336994b2ca9dde981ec75fe10811a4e
tree0d95230b7d77005e0b0ef7f70b84849091b0229e
parentf2533f2f8cc059e6d239e414f410483a53970cd3
nir/print: bit of state refactoring

Rename print_var_state to print_state, and stuff FILE ptr into the state
object.  This avoids passing around an extra parameter everywhere.

v2: even more extensive conversion.. use state *everywhere* instead of
FILE ptr, and convert nir_print_instr() to use state as well

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_print.c