Mesa (master): glsl/float64: make this compatible with glsl 330
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Dec 17 16:03:45 UTC 2020
Module: Mesa
Branch: master
Commit: 4d47b22bf007413274cabac264122ab7e428fe7d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d47b22bf007413274cabac264122ab7e428fe7d
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Thu Nov 5 12:52:21 2020 -0500
glsl/float64: make this compatible with glsl 330
just a minor tweak
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7483>
---
src/compiler/glsl/float64.glsl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/compiler/glsl/float64.glsl b/src/compiler/glsl/float64.glsl
index 5509b8946df..dd20a3170ee 100644
--- a/src/compiler/glsl/float64.glsl
+++ b/src/compiler/glsl/float64.glsl
@@ -40,7 +40,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#version 430
+#version 330
#extension GL_ARB_gpu_shader_int64 : enable
#extension GL_ARB_shader_bit_encoding : enable
#extension GL_EXT_shader_integer_mix : enable
@@ -1655,7 +1655,7 @@ __fround64(uint64_t __a)
if (unbiasedExp < 20) {
if (unbiasedExp < 0) {
if ((aHi & 0x80000000u) != 0u && aLo == 0u) {
- return 0;
+ return 0ul;
}
aHi &= 0x80000000u;
if ((a.y & 0x000FFFFFu) == 0u && a.x == 0u) {
More information about the mesa-commit
mailing list