Initially I was trying to implement for r600 optimization like in the d633e23192ef17207f4a6acd3009da3126aab395 commit for radeonsi, but failed because I need to learn some more about GPUs internals. For another time. Anyway, accidentally it turned into a small cleanup of r600_shader.c, here it is.
Hi-Angel (6): Get rid of trailing whitespace (trivial) Rename i→chan_index Replace bit-shifts and cycles with helpers from tgsi_exec.h Rename tgsi_last_instruction → tgsi_last_channel Get rid of tgsi_last_channel() wherever possible, rename lasti → last_chan Remove redudant comparisons src/gallium/drivers/r600/r600_shader.c | 815 ++++++++++++++------------------- 1 file changed, 333 insertions(+), 482 deletions(-) -- 2.11.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev