diff options
author | Samuel Pitoiset <[email protected]> | 2017-05-16 10:11:54 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-14 10:04:36 +0200 |
commit | 77bbdcdfcd8ad354a6e556b7440ea160fa62db85 (patch) | |
tree | 195ef79ba13ccd98c189e96462557edeb6d3d8c3 /src/gallium/drivers/radeonsi/si_uvd.c | |
parent | 86d7b7f01a06c6b84876ffcea907576725551a8a (diff) |
radeonsi: add a slab allocator for bindless descriptors
For each texture/image handles, we need to allocate a new
buffer for the bindless descriptor. But when the number of
buffers added to the current CS becomes high, the overhead
in the winsys (and in the kernel) is important.
To reduce this bottleneck, the idea is to suballocate the
bindless descriptors using a slab similar to the one used
in the winsys.
Currently, a buffer can hold 1024 bindless descriptors but
this limit is arbitrary and could be changed in the future
for some reasons. Once a slab is allocated the "base" buffer
is added to a per-context list.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_uvd.c')
0 files changed, 0 insertions, 0 deletions