OSDN Git Service

iris: Only set key->flat_shade if COL0/COL1 are written.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 7 Jul 2019 23:32:09 +0000 (16:32 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 11 Jul 2019 07:12:50 +0000 (00:12 -0700)
commitc58f52f0ef39db7ca6574381931203f435b03280
treede7f3525fa4956e0c986548510aca3aa9547a02b
parentcb82d534a0c3ea65c0f24586fcb877d912eec130
iris: Only set key->flat_shade if COL0/COL1 are written.

This was just laziness on my part, we already added similar checks in
the VS key handling.  Just need to do it here too.  Should improve cache
hits.
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_program.c
src/gallium/drivers/iris/iris_state.c