summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorYang Ni <yangni@google.com>2015-11-10 13:27:04 -0800
committerYang Ni <yangni@google.com>2015-11-13 10:00:12 -0800
commit263cc90345784c3f60bf57c0de91afc4d6c3d5db (patch)
treec4182272f7c18eaa2c6f8efc89db9830862aaf18 /rs/java/android/renderscript/ProgramStore.java
parentd1c469e8769822c48584034076861331fd792a7c (diff)
Various fixes in setting globals in a script group
Bug: 25602504 1) Passing floating point values into a script group was broken, since they were casted to long values. Fixed that in the frameworks implementation by taking the raw bits instead. 2) Passing 64-bit values into a script group was broken on 32-bit platforms, since they were casted to pointer-sized integers (uintptr_t) in the JNI code. Fixed that by casting to int64_t instead. 3) Setting global variables of Allocation type in a script group was broken. The special size value -1 was used to indicate the value is an Allocation. However, size was casted to size_t in the JNI code. Fixed that by using signed integers. Change-Id: Ifff099a76be7707df7b67c388395f5a00f9cae66
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions