st/mesa: skip texture validation logic when nothing has changed
authorTimothy Arceri <tarceri@itsqueeze.com>
Sat, 10 Jun 2017 04:52:46 +0000 (14:52 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 13 Jun 2017 01:24:32 +0000 (11:24 +1000)
commit2e28e8b199abab76fa9509d3247b44a2cb31921d
tree9d02da76e15599aad2a7df24de1736909813b63c
parent95c0591087ae9ecfb7be49fb73694c7222d42599
st/mesa: skip texture validation logic when nothing has changed

Based on the same logic in the i965 driver 2f225f61451abd51 and
16060c5adcd4.

perf reports st_finalize_texture() going from 0.60% -> 0.16% with
this change when running the Xonotic benchmark from PTS.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_manager.c
src/mesa/state_tracker/st_texture.h