diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2018-03-14 16:12:44 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-03-21 14:49:50 -0700 |
commit | 5e7c1d05d4f3732c79273b12e37de5d25ef108d5 (patch) | |
tree | b98b1e232a1b54070ea747df7f27785d519dcd9f /.editorconfig | |
parent | baeb6a4b4a275bc418037b718c904180e9e5c690 (diff) |
anv/pipeline: use less instructions for multiview
The view_index is encoded in the remainder of dividing instance id by
the number of views in the view mask (n). In the general case (handled
by the else clause), there is a need to map from 0..n-1 into the
number of the view being masked. For that a map is encoded.
In the case only the first n bits in the mask are set, the mapping is
trivial, 0..n-1 already represent what view is being referred to.
That case was in the original patch that added
anv_nir_lower_multiview.c but disabled.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to '.editorconfig')
0 files changed, 0 insertions, 0 deletions