[Mesa-dev] [PATCH 26/59] intel/compiler: don't compact 3-src instructions with Src1Type or Src2Type bits
Pohjolainen, Topi
topi.pohjolainen at gmail.com
Fri Dec 7 09:55:09 UTC 2018
On Tue, Dec 04, 2018 at 08:16:50AM +0100, Iago Toral Quiroga wrote:
> We are now using these bits, so don't assert that they are not set, just
> avoid compaction in that case.
Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> ---
> src/intel/compiler/brw_eu_compact.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/intel/compiler/brw_eu_compact.c b/src/intel/compiler/brw_eu_compact.c
> index ae14ef10ec0..20fed254331 100644
> --- a/src/intel/compiler/brw_eu_compact.c
> +++ b/src/intel/compiler/brw_eu_compact.c
> @@ -928,8 +928,11 @@ has_3src_unmapped_bits(const struct gen_device_info *devinfo,
> assert(!brw_inst_bits(src, 127, 126) &&
> !brw_inst_bits(src, 105, 105) &&
> !brw_inst_bits(src, 84, 84) &&
> - !brw_inst_bits(src, 36, 35) &&
> !brw_inst_bits(src, 7, 7));
> +
> + /* Src1Type and Src2Type, used for mixed-precision floating point */
> + if (brw_inst_bits(src, 36, 35))
> + return true;
> }
>
> return false;
> --
> 2.17.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list