gm107/ir: use CS2R for SV_CLOCK
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 19 Jul 2018 15:58:46 +0000 (16:58 +0100)
committerKarol Herbst <kherbst@redhat.com>
Thu, 19 Jul 2018 21:34:58 +0000 (23:34 +0200)
commit3b6edd0b591378bba5c369b13a650239c1cf0e6f
tree4a4aa41242e4d851329757c964a94658924e3401
parent94cf96458604d4b0f59b200c77ba5f32adbcc669
gm107/ir: use CS2R for SV_CLOCK

This instruction seems to be faster than S2R and requires no barrier,
though the range of special registers it can read from is limited.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_target_gm107.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_target_gm107.h