iris: Enable nir_opt_large_constants
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 28 May 2019 22:33:58 +0000 (17:33 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 29 May 2019 21:09:16 +0000 (21:09 +0000)
commite459d6d6dff1317a43b3f98d41e4b8bde39d1858
tree22cfd8023a8a90187cbf467ae504611fbba2b284
parent9dc57eebd578b976b94c54d083377ba0920d43a8
iris: Enable nir_opt_large_constants

Shader-db results on Kaby Lake:

    total instructions in shared programs: 15306230 -> 15304726 (<.01%)
    instructions in affected programs: 4570 -> 3066 (-32.91%)
    helped: 16
    HURT: 0

    total cycles in shared programs: 361703436 -> 361680041 (<.01%)
    cycles in affected programs: 129388 -> 105993 (-18.08%)
    helped: 16
    HURT: 0

    LOST:   0
    GAINED: 2

The helped programs were in XCom 2, Deus Ex: Mankind Divided, and Kerbal
Space Program

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_program.c
src/gallium/drivers/iris/iris_screen.c
src/gallium/drivers/iris/iris_state.c