projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1ff8db
)
intel/compiler: avoid truncating int64_t to int
author
Maya Rashish
<maya@netbsd.org>
Thu, 26 Sep 2019 14:14:34 +0000
(17:14 +0300)
committer
Matt Turner
<mattst88@gmail.com>
Thu, 26 Sep 2019 17:46:26 +0000
(17:46 +0000)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Maya Rashish <maya@netbsd.org>
src/intel/compiler/brw_fs_combine_constants.cpp
patch
|
blob
|
history
diff --git
a/src/intel/compiler/brw_fs_combine_constants.cpp
b/src/intel/compiler/brw_fs_combine_constants.cpp
index 0fff87820e1a42d82e8fe01a688ded075bb33376..182c24b55582f801280f2b7f54d46c9b63a86693 100644
(file)
--- a/
src/intel/compiler/brw_fs_combine_constants.cpp
+++ b/
src/intel/compiler/brw_fs_combine_constants.cpp
@@
-232,7
+232,7
@@
get_constant_value(const struct gen_device_info *devinfo,
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 :
ll
abs(src->d64);
memcpy(out, &val, 8);
break;
}