[Beignet] [PATCH] Fix type assert error generated by lstPartSum incorrect type
yan.wang at linux.intel.com
yan.wang at linux.intel.com
Thu Feb 4 04:50:31 CET 2016
After applying this patch, benchmark of workgroup add optimization could
run on my BSW platform.
Thanks.
Yan Wang
> Signed-off-by: Grigore Lupescu <grigore.lupescu at intel.com>
> ---
> backend/src/backend/gen_insn_selection.cpp | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/backend/src/backend/gen_insn_selection.cpp
> b/backend/src/backend/gen_insn_selection.cpp
> index 5eccfc6..0b9fe45 100644
> --- a/backend/src/backend/gen_insn_selection.cpp
> +++ b/backend/src/backend/gen_insn_selection.cpp
> @@ -6241,10 +6241,10 @@ extern bool OCL_DEBUGINFO; // first defined by
> calling BVAR in program.cpp
> GenRegister result = sel.selReg(sel.reg(FAMILY_WORD), type);
>
> vector<GenRegister> lstPartSum;
> - lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD),
> ir::TYPE_U32));
> - lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD),
> ir::TYPE_U32));
> - lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD),
> ir::TYPE_U32));
> - lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD),
> ir::TYPE_U32));
> + lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD), type));
> + lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD), type));
> + lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD), type));
> + lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD), type));
> vector<GenRegister> fakeTemps;
> fakeTemps.push_back(sel.selReg(sel.reg(FAMILY_WORD), type));
> fakeTemps.push_back(sel.selReg(sel.reg(FAMILY_WORD), type));
> --
> 2.5.0
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
>
More information about the Beignet
mailing list