mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
glsl: allow half float varyings
Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18540>
This commit is contained in:
parent
3dc67c2c7e
commit
9dc5eec02c
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue