CVS commit: xsrc/external/mit/MesaLib/dist/src/intel/compiler

2019-09-25 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Wed Sep 25 14:53:20 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/intel/compiler:
brw_fs_combine_constants.cpp

Log Message:
Avoid truncating int64_t to int. Found by clang.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \

xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist/src/intel/compiler

2019-09-25 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Wed Sep 25 14:53:20 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/intel/compiler:
brw_fs_combine_constants.cpp

Log Message:
Avoid truncating int64_t to int. Found by clang.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \

xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp
diff -u xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp:1.1.1.2 xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp:1.2
--- xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp:1.1.1.2	Tue Sep 24 17:39:40 2019
+++ xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp	Wed Sep 25 14:53:20 2019
@@ -34,6 +34,7 @@
  * cannot use immediate values.
  */
 
+#include 
 #include "brw_fs.h"
 #include "brw_cfg.h"
 #include "util/half_float.h"
@@ -232,7 +233,7 @@ get_constant_value(const struct gen_devi
   break;
}
case BRW_REGISTER_TYPE_Q: {
-  int64_t val = !can_do_source_mods ? src->d64 : abs(src->d64);
+  int64_t val = !can_do_source_mods ? src->d64 : std::abs(src->d64);
   memcpy(out, , 8);
   break;
}