i965: Only set key->flat_shade if COL0/COL1 are written.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 22 Aug 2017 21:23:17 +0000 (14:23 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Aug 2017 18:55:17 +0000 (11:55 -0700)
commiteaf5b8722bfaa8f8612c2cae14f61be4874c6406
tree79652e3e766f7ce3776bb761d58ed044eb69b9e0
parent348929015ba8166495195ccff4f9bb80d057b6d7
i965: Only set key->flat_shade if COL0/COL1 are written.

This may reduce some recompiles.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/drivers/dri/i965/brw_wm.c