mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
radv/ac: fix some fp16 handling
Fixes: b722b29f10 ("radv: add support for 16bit input/output")
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
c496b60ed8
commit
0907ae35ad
2 changed files with 2 additions and 2 deletions
|
|
@ -3980,7 +3980,7 @@ ac_handle_shader_output_decl(struct ac_llvm_context *ctx,
|
|||
}
|
||||
}
|
||||
|
||||
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->f16 : ctx->f32;
|
||||
for (unsigned i = 0; i < attrib_count; ++i) {
|
||||
for (unsigned chan = 0; chan < 4; chan++) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue