summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2021-02-10 10:38:03 -0800
committerKalesh Singh <kaleshsingh@google.com>2021-02-13 02:36:13 +0000
commit3e0c7c8231d206505e401dc4e9d27d61fcc03197 (patch)
treeba22aae254d23cc185092f2ed109ee6018987df0 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentf403b562676db87c88f8beec30e4b14e68d2dfbd (diff)
Eliminate memtrack variability from the lost RAM calculation
Modify lost RAM calculation to use total mapped dmabuf and private GPU allocations instead of memtrack HAL's reported Graphics and GL values. All of memtrack HAL's reported Graphics should be accounted for as part of mapped dmabufs. In order to not count it twice and not to depend on memtrack HAL's reported value we exclude it from total PSS calculation and replace it with mapped dmabufs. All of memtrack HAL's reported GL should be accounted for as part of private GPU allocations. In order to not count it twice and not to depend on memtrack HAL's reported value we exclude it from total PSS calculation and add GPU private allocations to total kernel memory usage. Bug: 165832481 Test: dumpsys meminfo Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: I631488d95cfd91d5428c877b3a004215031dd223 Merged-In: I631488d95cfd91d5428c877b3a004215031dd223
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions