[Mesa-dev] [PATCH] ac: add missing GLSL_TYPE_FLOAT16 to glsl_base_to_llvm_type()
Bas Nieuwenhuizen
basni at chromium.org
Mon Jan 14 12:53:02 UTC 2019
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Mon, Jan 14, 2019 at 1:49 PM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> Fix a crash with
> dEQP-VK.spirv_assembly.instruction.compute.workgroup_memory.float16
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/amd/common/ac_nir_to_llvm.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
> index 5023b96f92d..6bdc617b586 100644
> --- a/src/amd/common/ac_nir_to_llvm.c
> +++ b/src/amd/common/ac_nir_to_llvm.c
> @@ -3904,6 +3904,8 @@ glsl_base_to_llvm_type(struct ac_llvm_context *ac,
> return ac->i32;
> case GLSL_TYPE_FLOAT: /* TODO handle mediump */
> return ac->f32;
> + case GLSL_TYPE_FLOAT16:
> + return ac->f16;
> case GLSL_TYPE_INT64:
> case GLSL_TYPE_UINT64:
> return ac->i64;
> --
> 2.20.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