[Mesa-dev] [PATCH 3/4] nir: support to flatten_all in peephole-select
Eric Anholt
eric at anholt.net
Wed Apr 1 13:52:35 PDT 2015
Rob Clark <robdclark at gmail.com> writes:
> From: Rob Clark <robclark at freedesktop.org>
>
> Freedreno and vc4 want this behavior for the time being (until we have
> real flow control). Even after that, we probably want to turn this into
> some sort of driver tunable threshold, since for at least some hardware,
> reasonably large if/else is best flattend rather than having divergent
> flow control.
>
> NOTE: wasn't sure about some of the additional restrictions in
> block_check_for_allowed_instrs().. are there some other cases where
> I might need to fix things up in order to be guaranteed to be able to
> flatten?
Interesting. I'm relying on GLSL IR-level flattening currently, and
this might be better than that. Not sure. I'd need flattening of "if
(condition) discard;", too, though.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150401/7b02207c/attachment-0001.sig>
More information about the mesa-dev
mailing list