mesa: only update framebuffer-state for clears
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 10 Sep 2018 20:11:16 +0000 (22:11 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 19 Sep 2018 09:52:53 +0000 (11:52 +0200)
commitfb86365148d5b8f3f06c5e42d9c8440fc1f6693f
tree7efeefe05188467f60bbd035fc2ab1f518961c58
parent0c82e3603e195e7b0b3ba39caada6d3ff070076f
mesa: only update framebuffer-state for clears

If we update the program-state etc, we risk compiling needless shaders,
which can cost quite a bit of performance.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/clear.c