1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-29 17:52:18 +01:00

[d3d11] Also validate draw buffer for DispatchIndirect

Oversight.
This commit is contained in:
Philip Rebohle 2021-09-12 16:18:25 +02:00
parent de7fb51e64
commit dd7ffbc803
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -1372,6 +1372,9 @@ namespace dxvk {
D3D10DeviceLock lock = LockContext();
SetDrawBuffers(pBufferForArgs, nullptr);
if (!ValidateDrawBufferSize(pBufferForArgs, AlignedByteOffsetForArgs, sizeof(VkDispatchIndirectCommand)))
return;
EmitCs([cOffset = AlignedByteOffsetForArgs]
(DxvkContext* ctx) {
ctx->dispatchIndirect(cOffset);