From 9dc5eec02c9ad2b87ee996e888926c28feda4e3a Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 26 Jul 2022 21:42:45 +1000 Subject: [PATCH] glsl: allow half float varyings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Acked-by: Marek Olšák Part-of: --- src/compiler/glsl/ast_to_hir.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp index 9a33a2ccd2d..cf43443d349 100644 --- a/src/compiler/glsl/ast_to_hir.cpp +++ b/src/compiler/glsl/ast_to_hir.cpp @@ -4300,6 +4300,9 @@ apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual, case GLSL_TYPE_FLOAT: /* Ok in all GLSL versions */ break; + case GLSL_TYPE_FLOAT16: + if (state->AMD_gpu_shader_half_float_enable) + break; case GLSL_TYPE_UINT: case GLSL_TYPE_INT: if (state->is_version(130, 300) || state->EXT_gpu_shader4_enable)