nv50/ir,nvc0: use constant buffers for compute when possible on Kepler+
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 3 Aug 2018 21:11:28 +0000 (22:11 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Mon, 27 Aug 2018 13:23:42 +0000 (14:23 +0100)
commite56e600bd36f562ccd654d4d51a32e054ff4352d
tree838430158c6b2013a1ae291605ac49c5ef59d425
parentd27c7918916cdc8092959124955f887592e37d72
nv50/ir,nvc0: use constant buffers for compute when possible on Kepler+

Gives a +7.79% increase in FPS with Hitman on lowest quality settings on
my GTX 1060.

total instructions in shared programs : 5787979 -> 5748677 (-0.68%)
total gprs used in shared programs    : 669901 -> 669373 (-0.08%)
total shared used in shared programs  : 548832 -> 548832 (0.00%)
total local used in shared programs   : 21068 -> 21064 (-0.02%)

                local     shared        gpr       inst      bytes
    helped           1           0         152         274         274
      hurt           0           0           0           0           0

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
src/gallium/drivers/nouveau/nvc0/nve4_compute.c