diff options
author | Ian Romanick <[email protected]> | 2014-07-14 15:48:37 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-08-29 23:28:26 -0700 |
commit | 8eeca7a56cf1ef47b6f86cc5a0397a532a7c2932 (patch) | |
tree | 8e863952cb68d909c1491a82b24da8e6857feb2b /src/glsl/ast_to_hir.cpp | |
parent | c0cd5bedf66887e958e140c047afc5bc26160000 (diff) |
glsl: Use a single bit for the dual-source blend index
The only values allowed are 0 and 1, and the value is checked before
assigning.
Valgrind massif results for a trimmed apitrace of dota2:
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
Before (32-bit): 74 40,580,119,657 69,186,544 63,506,327 5,680,217 0
After (32-bit): 76 40,572,916,873 68,831,248 63,328,783 5,502,465 0
Before (64-bit): 89 36,822,971,897 96,526,616 88,735,296 7,791,320 0
After (64-bit): 60 36,822,640,058 96,526,824 88,735,296 7,791,528 0
A real savings of 173KiB on 32-bit and no change on 64-bit.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
0 files changed, 0 insertions, 0 deletions