st/nine: Avoid Constant upload when there is no change
authorAxel Davy <axel.davy@ens.fr>
Sun, 9 Aug 2015 17:02:02 +0000 (19:02 +0200)
committerAxel Davy <axel.davy@ens.fr>
Fri, 21 Aug 2015 20:21:48 +0000 (22:21 +0200)
commiteba3c390a3c6221781ca4d9c344c6f448e177b6c
tree81c142377357992ed216b20a0046ef60f6592057
parent1a747094ed0ab32541936dd18931f382901affe6
st/nine: Avoid Constant upload when there is no change

It is very common for d3d9 apps to set again the constants
they need before every draw call, even if nothing changed.

Since we are mostly gpu bound, it is better to check
for change, and upload constants again (and thus use
gpu bandwith) only if the constants changed.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/device9.c