When reading back a BGRA surface the client expects the data in BGRA order, and when we emulate the format by using a swizzled BGRA on GLES we still have to use the original format information to read back the data. However, this results in mesa internally swizzling the RGBA data to BGRA ordering on the CPU. This performance hit can be avoided for applications that only blit or render to BGRA surfaces, because here we can set the bgraswz tweak that does the szizzling on the GPU when drawing or blitting to a BGRA surface and then we can read the data back as is. With that for vtest the bgraswz tweak becomes purley a performance tweak. Replaying a trace of The Raven Remastered showed a 1% increase of performance when enabling the bgraswz tweak. Closes #174 v2: Fix typo (Gurchetan) v3: fix more typos (Gurchetan) Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>macos/master
parent
2dc844a4ca
commit
a15838e456
Loading…
Reference in new issue