[Mesa-dev] [PATCH] nir+drivers: add helpers to get # of src/dest components

Eric Anholt eric at anholt.net
Fri Mar 30 20:49:23 UTC 2018


Rob Clark <robdclark at gmail.com> writes:

> Add helpers to get the number of src/dest components for an intrinsic,
> and update spots that were open-coding this logic to use the helpers
> instead.
>
> Signed-off-by: Rob Clark <robdclark at gmail.com>
> ---
>  src/compiler/nir/nir.h                             | 22 ++++++++++++++++++++++
>  src/compiler/nir/nir_opt_copy_propagate.c          |  5 +----
>  src/compiler/nir/nir_validate.c                    | 10 ++--------
>  src/compiler/spirv/spirv_to_nir.c                  |  3 +--
>  .../drivers/freedreno/ir3/ir3_compiler_nir.c       |  6 +-----
>  src/intel/compiler/brw_fs_nir.cpp                  | 11 +++++------
>  6 files changed, 32 insertions(+), 25 deletions(-)

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180330/19f1d3ef/attachment-0001.sig>


More information about the mesa-dev mailing list