dzn: Add missing D3D12_CACHED_PIPELINE_STATE to MAX_COMPUTE_PIPELINE_STATE_STREAM_SIZE
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 17 Jun 2022 17:08:36 +0000 (19:08 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 28 Jun 2022 13:02:22 +0000 (13:02 +0000)
Fixes: 9feda65a83c ("dzn: Use CreatePipelineState()")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17140>

src/microsoft/vulkan/dzn_private.h

index 282ea38..f36e57a 100644 (file)
@@ -722,7 +722,8 @@ enum dzn_register_space {
 
 #define MAX_COMPUTE_PIPELINE_STATE_STREAM_SIZE \
    D3D12_PIPELINE_STATE_STREAM_DESC_SIZE(ID3D12RootSignature *) + \
-   D3D12_PIPELINE_STATE_STREAM_DESC_SIZE(D3D12_SHADER_BYTECODE)
+   D3D12_PIPELINE_STATE_STREAM_DESC_SIZE(D3D12_SHADER_BYTECODE) + \
+   D3D12_PIPELINE_STATE_STREAM_DESC_SIZE(D3D12_CACHED_PIPELINE_STATE)
 
 struct dzn_pipeline {
    struct vk_object_base base;