diff options
author | Timothy Arceri <[email protected]> | 2019-01-24 16:02:17 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2019-01-28 10:41:48 +1100 |
commit | 0907ae35ad0e7733535516fada04948ea7125291 (patch) | |
tree | cd2d679f6406feec2868949a9bde533b315ed136 /src/amd/vulkan | |
parent | c496b60ed8cec0f3a9df35ee96f8765fe38853b7 (diff) |
radv/ac: fix some fp16 handling
Fixes: b722b29f10d4 ("radv: add support for 16bit input/output")
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_nir_to_llvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 7f1aa17b0d5..91cbce42d6a 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -2166,7 +2166,7 @@ handle_fs_input_decl(struct radv_shader_context *ctx, interp = lookup_interp_param(&ctx->abi, variable->data.interpolation, interp_type); } - bool is_16bit = glsl_type_is_16bit(variable->type); + bool is_16bit = glsl_type_is_16bit(glsl_without_array(variable->type)); LLVMTypeRef type = is_16bit ? ctx->ac.i16 : ctx->ac.i32; if (interp == NULL) interp = LLVMGetUndef(type); |