glsl/builtin_functions: Rename int64 function to int64_avail

* int64 is a core type on Haiku (and potentially other platforms)
* rename to int64_avail matching other similar calls

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Alexander von Gluck IV 2020-12-29 18:46:59 -06:00
parent cd2f3627a6
commit c7486c996e
1 changed files with 47 additions and 47 deletions

View File

@ -735,7 +735,7 @@ fp64(const _mesa_glsl_parse_state *state)
}
static bool
int64(const _mesa_glsl_parse_state *state)
int64_avail(const _mesa_glsl_parse_state *state)
{
return state->has_int64();
}
@ -1675,10 +1675,10 @@ builtin_builder::create_builtins()
_##NAME(fp64, glsl_type::dvec2_type), \
_##NAME(fp64, glsl_type::dvec3_type), \
_##NAME(fp64, glsl_type::dvec4_type), \
_##NAME(int64, glsl_type::int64_t_type), \
_##NAME(int64, glsl_type::i64vec2_type), \
_##NAME(int64, glsl_type::i64vec3_type), \
_##NAME(int64, glsl_type::i64vec4_type), \
_##NAME(int64_avail, glsl_type::int64_t_type), \
_##NAME(int64_avail, glsl_type::i64vec2_type), \
_##NAME(int64_avail, glsl_type::i64vec3_type), \
_##NAME(int64_avail, glsl_type::i64vec4_type), \
NULL);
#define FIUD_VEC(NAME) \
@ -1697,14 +1697,14 @@ builtin_builder::create_builtins()
_##NAME(fp64, glsl_type::dvec2_type), \
_##NAME(fp64, glsl_type::dvec3_type), \
_##NAME(fp64, glsl_type::dvec4_type), \
_##NAME(int64, glsl_type::int64_t_type), \
_##NAME(int64, glsl_type::i64vec2_type), \
_##NAME(int64, glsl_type::i64vec3_type), \
_##NAME(int64, glsl_type::i64vec4_type), \
_##NAME(int64, glsl_type::uint64_t_type), \
_##NAME(int64, glsl_type::u64vec2_type), \
_##NAME(int64, glsl_type::u64vec3_type), \
_##NAME(int64, glsl_type::u64vec4_type), \
_##NAME(int64_avail, glsl_type::int64_t_type), \
_##NAME(int64_avail, glsl_type::i64vec2_type), \
_##NAME(int64_avail, glsl_type::i64vec3_type), \
_##NAME(int64_avail, glsl_type::i64vec4_type), \
_##NAME(int64_avail, glsl_type::uint64_t_type), \
_##NAME(int64_avail, glsl_type::u64vec2_type), \
_##NAME(int64_avail, glsl_type::u64vec3_type), \
_##NAME(int64_avail, glsl_type::u64vec4_type), \
NULL);
#define IU(NAME) \
@ -1741,14 +1741,14 @@ builtin_builder::create_builtins()
_##NAME(fp64, glsl_type::dvec2_type), \
_##NAME(fp64, glsl_type::dvec3_type), \
_##NAME(fp64, glsl_type::dvec4_type), \
_##NAME(int64, glsl_type::int64_t_type), \
_##NAME(int64, glsl_type::i64vec2_type), \
_##NAME(int64, glsl_type::i64vec3_type), \
_##NAME(int64, glsl_type::i64vec4_type), \
_##NAME(int64, glsl_type::uint64_t_type), \
_##NAME(int64, glsl_type::u64vec2_type), \
_##NAME(int64, glsl_type::u64vec3_type), \
_##NAME(int64, glsl_type::u64vec4_type), \
_##NAME(int64_avail, glsl_type::int64_t_type), \
_##NAME(int64_avail, glsl_type::i64vec2_type), \
_##NAME(int64_avail, glsl_type::i64vec3_type), \
_##NAME(int64_avail, glsl_type::i64vec4_type), \
_##NAME(int64_avail, glsl_type::uint64_t_type), \
_##NAME(int64_avail, glsl_type::u64vec2_type), \
_##NAME(int64_avail, glsl_type::u64vec3_type), \
_##NAME(int64_avail, glsl_type::u64vec4_type), \
NULL);
#define FIUD2_MIXED(NAME) \
@ -1788,20 +1788,20 @@ builtin_builder::create_builtins()
_##NAME(fp64, glsl_type::dvec3_type, glsl_type::dvec3_type), \
_##NAME(fp64, glsl_type::dvec4_type, glsl_type::dvec4_type), \
\
_##NAME(int64, glsl_type::int64_t_type, glsl_type::int64_t_type), \
_##NAME(int64, glsl_type::i64vec2_type, glsl_type::int64_t_type), \
_##NAME(int64, glsl_type::i64vec3_type, glsl_type::int64_t_type), \
_##NAME(int64, glsl_type::i64vec4_type, glsl_type::int64_t_type), \
_##NAME(int64, glsl_type::i64vec2_type, glsl_type::i64vec2_type), \
_##NAME(int64, glsl_type::i64vec3_type, glsl_type::i64vec3_type), \
_##NAME(int64, glsl_type::i64vec4_type, glsl_type::i64vec4_type), \
_##NAME(int64, glsl_type::uint64_t_type, glsl_type::uint64_t_type), \
_##NAME(int64, glsl_type::u64vec2_type, glsl_type::uint64_t_type), \
_##NAME(int64, glsl_type::u64vec3_type, glsl_type::uint64_t_type), \
_##NAME(int64, glsl_type::u64vec4_type, glsl_type::uint64_t_type), \
_##NAME(int64, glsl_type::u64vec2_type, glsl_type::u64vec2_type), \
_##NAME(int64, glsl_type::u64vec3_type, glsl_type::u64vec3_type), \
_##NAME(int64, glsl_type::u64vec4_type, glsl_type::u64vec4_type), \
_##NAME(int64_avail, glsl_type::int64_t_type, glsl_type::int64_t_type), \
_##NAME(int64_avail, glsl_type::i64vec2_type, glsl_type::int64_t_type), \
_##NAME(int64_avail, glsl_type::i64vec3_type, glsl_type::int64_t_type), \
_##NAME(int64_avail, glsl_type::i64vec4_type, glsl_type::int64_t_type), \
_##NAME(int64_avail, glsl_type::i64vec2_type, glsl_type::i64vec2_type), \
_##NAME(int64_avail, glsl_type::i64vec3_type, glsl_type::i64vec3_type), \
_##NAME(int64_avail, glsl_type::i64vec4_type, glsl_type::i64vec4_type), \
_##NAME(int64_avail, glsl_type::uint64_t_type, glsl_type::uint64_t_type), \
_##NAME(int64_avail, glsl_type::u64vec2_type, glsl_type::uint64_t_type), \
_##NAME(int64_avail, glsl_type::u64vec3_type, glsl_type::uint64_t_type), \
_##NAME(int64_avail, glsl_type::u64vec4_type, glsl_type::uint64_t_type), \
_##NAME(int64_avail, glsl_type::u64vec2_type, glsl_type::u64vec2_type), \
_##NAME(int64_avail, glsl_type::u64vec3_type, glsl_type::u64vec3_type), \
_##NAME(int64_avail, glsl_type::u64vec4_type, glsl_type::u64vec4_type), \
NULL);
F(radians)
@ -1931,15 +1931,15 @@ builtin_builder::create_builtins()
_mix_sel(shader_integer_mix, glsl_type::bvec3_type, glsl_type::bvec3_type),
_mix_sel(shader_integer_mix, glsl_type::bvec4_type, glsl_type::bvec4_type),
_mix_sel(int64, glsl_type::int64_t_type, glsl_type::bool_type),
_mix_sel(int64, glsl_type::i64vec2_type, glsl_type::bvec2_type),
_mix_sel(int64, glsl_type::i64vec3_type, glsl_type::bvec3_type),
_mix_sel(int64, glsl_type::i64vec4_type, glsl_type::bvec4_type),
_mix_sel(int64_avail, glsl_type::int64_t_type, glsl_type::bool_type),
_mix_sel(int64_avail, glsl_type::i64vec2_type, glsl_type::bvec2_type),
_mix_sel(int64_avail, glsl_type::i64vec3_type, glsl_type::bvec3_type),
_mix_sel(int64_avail, glsl_type::i64vec4_type, glsl_type::bvec4_type),
_mix_sel(int64, glsl_type::uint64_t_type, glsl_type::bool_type),
_mix_sel(int64, glsl_type::u64vec2_type, glsl_type::bvec2_type),
_mix_sel(int64, glsl_type::u64vec3_type, glsl_type::bvec3_type),
_mix_sel(int64, glsl_type::u64vec4_type, glsl_type::bvec4_type),
_mix_sel(int64_avail, glsl_type::uint64_t_type, glsl_type::bool_type),
_mix_sel(int64_avail, glsl_type::u64vec2_type, glsl_type::bvec2_type),
_mix_sel(int64_avail, glsl_type::u64vec3_type, glsl_type::bvec3_type),
_mix_sel(int64_avail, glsl_type::u64vec4_type, glsl_type::bvec4_type),
NULL);
add_function("step",
@ -2039,10 +2039,10 @@ builtin_builder::create_builtins()
add_function("packDouble2x32", _packDouble2x32(fp64), NULL);
add_function("unpackDouble2x32", _unpackDouble2x32(fp64), NULL);
add_function("packInt2x32", _packInt2x32(int64), NULL);
add_function("unpackInt2x32", _unpackInt2x32(int64), NULL);
add_function("packUint2x32", _packUint2x32(int64), NULL);
add_function("unpackUint2x32", _unpackUint2x32(int64), NULL);
add_function("packInt2x32", _packInt2x32(int64_avail), NULL);
add_function("unpackInt2x32", _unpackInt2x32(int64_avail), NULL);
add_function("packUint2x32", _packUint2x32(int64_avail), NULL);
add_function("unpackUint2x32", _unpackUint2x32(int64_avail), NULL);
FD(length)
FD(distance)