d3d12: Don't align already-aligned size in d3d12_bufmgr_create_buffer

This is handled by `pb_cache_manager_create_buffer`.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19082>
This commit is contained in:
Giancarlo Devich
2022-10-17 13:24:14 -07:00
committed by Marge Bot
parent e902f2ab8c
commit dc4d7d7b0f
@@ -321,10 +321,6 @@ d3d12_bufmgr_create_buffer(struct pb_manager *pmgr,
if (!buf)
return NULL;
// Align the buffer to D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT
// in case it is to be used as a CBV.
size = align64(size, D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT);
pipe_reference_init(&buf->base.reference, 1);
buf->base.alignment_log2 = util_logbase2(pb_desc->alignment);
buf->base.usage = pb_desc->usage;