On GLES hosts, BGR* resources are manually swizzled to RGB* internal format on creation and swizzled back to BGR* format on readback. For small transfers, iovec data is directly passed to the host driver without staging in a temp buffer first. When swizzling for BGR* resources, this modifies the persistend iovec buffer when it should remain in the user-provided format. So we force temp buffers for all iovec transfers on BGR* resources on GLES hosts to fix this. Signed-off-by: Ryan Neph <ryanneph@google.com> Reviewed-by: Lepton Wu <lepton@chromium.org>macos/master
parent
26fe73a275
commit
3b29b0723d
Loading…
Reference in new issue