From c7486c996e15a08c9b110ea6817eb304eecaa7b2 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Tue, 29 Dec 2020 18:46:59 -0600 Subject: [PATCH] glsl/builtin_functions: Rename int64 function to int64_avail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * int64 is a core type on Haiku (and potentially other platforms) * rename to int64_avail matching other similar calls Reviewed-by: Marek Olšák --- src/compiler/glsl/builtin_functions.cpp | 94 ++++++++++++------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/src/compiler/glsl/builtin_functions.cpp b/src/compiler/glsl/builtin_functions.cpp index 10eec67f83f..b8e3f2b780b 100644 --- a/src/compiler/glsl/builtin_functions.cpp +++ b/src/compiler/glsl/builtin_functions.cpp @@ -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)