mesa/st: swap order of clear() and clear_with_quad()
authorRob Clark <robdclark@gmail.com>
Tue, 13 Nov 2018 18:40:58 +0000 (13:40 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 27 Nov 2018 20:44:02 +0000 (15:44 -0500)
commit65cee01430d03b140c1a916e9409f045e24d4b8f
treede8d7b738d0f5c9bf0c2e74e5238d6af9b620c9d
parentaa0fed10d3574aec8c129bace78018ae060484c0
mesa/st: swap order of clear() and clear_with_quad()

If we can't clear all the buffers with pctx->clear() (say, for example,
because of ColorMask), push the buffers we *can* clear with pctx->clear()
first.  Tilers want to see clears coming before draws to enable fast-
paths, and clearing one of the attachments with a quad-draw first
confuses that logic.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/state_tracker/st_cb_clear.c