From d3e6ef195a2e55ee2f765153a210c7179b9476ee Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Fri, 17 Jun 2022 10:26:46 -0700 Subject: [PATCH] dzn: Fix assertion in d3d12_pipeline_state_stream_new_desc() Fixes: 9feda65a83c ("dzn: Use CreatePipelineState()") Reviewed-by: Jesse Natalie Part-of: --- src/microsoft/vulkan/dzn_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microsoft/vulkan/dzn_pipeline.c b/src/microsoft/vulkan/dzn_pipeline.c index 42e2b36234a..bc9bc8a8699 100644 --- a/src/microsoft/vulkan/dzn_pipeline.c +++ b/src/microsoft/vulkan/dzn_pipeline.c @@ -48,7 +48,7 @@ (__stream)->SizeInBytes = ALIGN_POT((__stream)->SizeInBytes, alignof(void *)); \ __wrapper = (void *)((uint8_t *)(__stream)->pPipelineStateSubobjectStream + (__stream)->SizeInBytes); \ (__stream)->SizeInBytes += sizeof(*__wrapper); \ - assert((__stream)->SizeInBytes < MAX_ ## __pipetype ## _PIPELINE_STATE_STREAM_SIZE); \ + assert((__stream)->SizeInBytes <= MAX_ ## __pipetype ## _PIPELINE_STATE_STREAM_SIZE); \ __wrapper->type = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ ## __id; \ __desc = &__wrapper->desc; \ memset(__desc, 0, sizeof(*__desc)); \