Avoid dynamic branches on in-bounds loads
When robustBufferAccess is disabled, applications must guarantee that
no accesses will go out of bounds (statically or dynamically). For
accesses with static equal or sequential offsets this means they'll be
in-bounds for both active and inactive lanes. Hence we can omit all
lane masking on such load operations.
Bug: b/131224163
Bug: b/135609394
Change-Id: I8ef2d42b0159af0ee425bbd3ef5898ce971d8491
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/33928Tested-by:
Nicolas Capens <nicolascapens@google.com>
Presubmit-Ready: Nicolas Capens <nicolascapens@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by:
Chris Forbes <chrisforbes@google.com>
Reviewed-by:
Ben Clayton <bclayton@google.com>
Showing
Please
register
or
sign in
to comment