[Mesa-dev] [PATCH 42/59] intel/compiler: activate 16-bit bit-size lowerings also for 8-bit

Jason Ekstrand jason at jlekstrand.net
Fri Dec 7 19:40:19 UTC 2018


Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Tue, Dec 4, 2018 at 1:19 AM Iago Toral Quiroga <itoral at igalia.com> wrote:

> Particularly, we need the same lowewrings we use for 16-bit
> integers.
> ---
>  src/intel/compiler/brw_nir.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c
> index 0b3094724c4..0a5aa35c700 100644
> --- a/src/intel/compiler/brw_nir.c
> +++ b/src/intel/compiler/brw_nir.c
> @@ -611,7 +611,7 @@ static unsigned
>  lower_bit_size_callback(const nir_alu_instr *alu, UNUSED void *data)
>  {
>     assert(alu->dest.dest.is_ssa);
> -   if (alu->dest.dest.ssa.bit_size != 16)
> +   if (alu->dest.dest.ssa.bit_size >= 32)
>        return 0;
>
>     const struct brw_compiler *compiler = (const struct brw_compiler *)
> data;
> --
> 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/20181207/2cbd6dc0/attachment-0001.html>


More information about the mesa-dev mailing list