iris: Optimize out redundant sampler state binds
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 8 Sep 2019 05:30:02 +0000 (22:30 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Sep 2019 18:55:27 +0000 (11:55 -0700)
commit7d28e9ddd62eeccf6c528beee6b1a58fdfb7f5a0
tree749dcb2c58d5e14d67096c010710f9bc6586d77d
parent325e25d689baf0da56ed51c941c72a86e00ce10f
iris: Optimize out redundant sampler state binds

This cuts roughly 85% of the 3DSTATE_SAMPLER_STATE_POINTERS_PS calls in
the J2DBench images test.  For some reason, the state tracker is calling
bind_sampler_state with the same sampler state in a bunch of cases.
src/gallium/drivers/iris/iris_state.c