[Mesa-dev] [PATCH 05/14] intel/compiler: Use shuffle_from_32bit_write for 16-bits store_ssbo

Jason Ekstrand jason at jlekstrand.net
Thu Jun 14 01:09:31 UTC 2018


s/from/for/ in the commit message.

On Sat, Jun 9, 2018 at 4:13 AM, Jose Maria Casanova Crespo <
jmcasanova at igalia.com> wrote:

> ---
>  src/intel/compiler/brw_fs_nir.cpp | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/src/intel/compiler/brw_fs_nir.cpp
> b/src/intel/compiler/brw_fs_nir.cpp
> index ef7895262b8..a54935f7049 100644
> --- a/src/intel/compiler/brw_fs_nir.cpp
> +++ b/src/intel/compiler/brw_fs_nir.cpp
> @@ -4297,11 +4297,8 @@ fs_visitor::nir_emit_intrinsic(const fs_builder
> &bld, nir_intrinsic_instr *instr
>               * aligned. Shuffling only one component would be the same as
>               * striding it.
>               */
> -            fs_reg tmp = bld.vgrf(BRW_REGISTER_TYPE_D,
> -                                  DIV_ROUND_UP(num_components, 2));
> -            shuffle_16bit_data_for_32bit_write(bld, tmp, write_src,
> -                                               num_components);
> -            write_src = tmp;
> +            write_src = shuffle_for_32bit_write(bld, write_src, 0,
> +                                                num_components);
>           }
>
>           fs_reg offset_reg;
> --
> 2.17.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180613/1ecca4db/attachment.html>


More information about the mesa-dev mailing list