summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_surface.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-11-04 15:19:02 +0100
committerBas Nieuwenhuizen <[email protected]>2017-11-04 20:18:17 +0100
commitcecbcf4b2de9e495969b7a25ce06ba7c3fabeb6c (patch)
tree123d13fd4c7b962c82dd1e151b7b0f96a48285b8 /src/amd/common/ac_surface.c
parentb041687ed1e641a79237752a5ffe099d731e13e9 (diff)
radv: Use an array to store descriptor sets.
The vram_list linked list resulted in lots of pointer chasing. Replacing this with an array instead improves descriptor set allocation CPU usage by 3x at least (when also considering the free), because it had to iterate through 300-400 sets on average. Not a huge improvement as the pre-improvement CPU usage was only about 2.3% in the busiest thread. Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common/ac_surface.c')
0 files changed, 0 insertions, 0 deletions