[Mesa-dev] [PATCH 0/6] r600g: r600_shader.c small cleanups

Constantine Charlamov Hi-Angel at yandex.ru
Sun Feb 26 20:31:43 UTC 2017


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



More information about the mesa-dev mailing list