summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorBruce Cherniak <[email protected]>2017-06-30 22:24:46 -0500
committerTim Rowley <[email protected]>2017-07-02 17:38:57 -0500
commit32c1a54bd01465e77a8e26b9cc8d2487b31509c5 (patch)
tree47499d3463d4a5dabf693f962357ccdf7e859a11 /src/intel/vulkan/anv_pipeline.c
parent038c45a40e4397c3219f1fc6e679473ed8c8beee (diff)
swr: Limit memory held by defer deleted resources.
This patch limits the number of items on the fence work queue (the deferred deletion list) by submitting a sync fence when the queue size exceeds a threshold. This initiates deferred deletion of all resources on the list and decreases the total amount of memory held waiting for "deferred deletion". This resolves bug 101467 filed against swr for the piglit streaming-texture-leak test. For those running on smaller memory (16GB?) systems, this will prevent oom-killer. Thus far, we have not seen any real world applications that exhibit behavior like the streaming-texture-leak test; as any form of pipeline flush will trigger the defer queue and properly free any retained allocations. But, this addresses those as well. Cc: "17.1" <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_pipeline.c')
0 files changed, 0 insertions, 0 deletions