[Beignet] [PATCH] fix GPU data type for 16-bit moving
Zhigang Gong
zhigang.gong at linux.intel.com
Tue Sep 3 19:23:25 PDT 2013
Nice catch. Thanks for the patch.
On Wed, Sep 04, 2013 at 09:18:20AM +0800, Homer Hsing wrote:
>
> Signed-off-by: Homer Hsing <homer.xing at intel.com>
> ---
> backend/src/backend/gen_insn_selection.cpp | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/backend/src/backend/gen_insn_selection.cpp b/backend/src/backend/gen_insn_selection.cpp
> index b417024..3176a2a 100644
> --- a/backend/src/backend/gen_insn_selection.cpp
> +++ b/backend/src/backend/gen_insn_selection.cpp
> @@ -1391,6 +1391,8 @@ namespace gbe
> return insnType;
> if (opcode == ir::OP_FBH || opcode == ir::OP_FBL)
> return ir::TYPE_U32;
> + if (insnType == ir::TYPE_S16 || insnType == ir::TYPE_U16)
> + return insnType;
> return ir::TYPE_FLOAT;
> }
>
> --
> 1.8.1.2
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list