radeonsi: implement TGSI opcodes TEX_LZ and TXF_LZ
authorMarek Olšák <marek.olsak@amd.com>
Tue, 7 Mar 2017 01:19:47 +0000 (02:19 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 15 Mar 2017 17:17:41 +0000 (18:17 +0100)
commit0550f3d6313a95552da0be4a52f42fb99ea2c136
tree17a59d385b65e5f43a2cb395fad9e107461a4687
parenta7cc9b0fcf09ba0102bddf020c258a761e304c5e
radeonsi: implement TGSI opcodes TEX_LZ and TXF_LZ

This massively decreases VGPR spilling for DiRT Showdown, because we
no longer have to use v4i32 for 2D fetches when level == 0.
We now use v2i32 for those cases.

DiRT Showdown - Spilled VGPRs: -26 (-81%)

This surprisingly doesn't have any useful effect on performance (+ 0.05%).
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/radeonsi/si_shader.c