vc4: Avoid loading undefined (newly-allocated) FBO contents.
authorEric Anholt <eric@anholt.net>
Mon, 9 Nov 2015 17:12:20 +0000 (09:12 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 10 Nov 2015 03:17:36 +0000 (19:17 -0800)
commit437d7b611972c52fac32cb54038d3b278f66fd5a
treed62ad62693542a4f6625569d26c77b22b4e3139b
parent5980389bbf98b8186ba6a06392d92b82fa9efad3
vc4: Avoid loading undefined (newly-allocated) FBO contents.

Since X has undefined contents in new pixmaps, it will allocate new
textures for an FBO and draw to them without an explicit clear.  For
VC4, it's much faster to emit a clear than the load of the actual
undefined memory contents, so just do that instead.
src/gallium/drivers/vc4/vc4_state.c