diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-02-16 20:52:24 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-02-17 09:28:14 +0100 |
commit | f4487016226c3337fa5fb2244c75ce298093c3ce (patch) | |
tree | f9d19221d53754a3f3898e06dcc7b6ec6c254be9 /src/amd/vulkan/radv_private.h | |
parent | fccbad73effc88011b2236e042ad749c8bc15abd (diff) |
radv: Never try to create more than max_sets descriptor sets.
We only use the freed ones after all free space has been used. If
the app only allocates small descriptor sets, we might go over
max_sets before the memory is full.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
CC: <[email protected]>
Fixes: f4e499ec79147f4172f3669ae9dafd941aaeeb65
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 7b1d8fb1f45..9c326dcef83 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -564,6 +564,7 @@ struct radv_descriptor_pool { int free_list; int full_list; uint32_t max_sets; + uint32_t allocated_sets; struct radv_descriptor_pool_free_node free_nodes[]; }; |