From 5d90b1db70ae8a635e38bfba7fc1912aaa249895 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 6 Apr 2023 19:22:08 -0400 Subject: [PATCH] lavapipe: set separate_shaders for shader objects Part-of: --- src/gallium/frontends/lavapipe/lvp_pipeline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/frontends/lavapipe/lvp_pipeline.c b/src/gallium/frontends/lavapipe/lvp_pipeline.c index aefd4a2ce66..de466eb6e0c 100644 --- a/src/gallium/frontends/lavapipe/lvp_pipeline.c +++ b/src/gallium/frontends/lavapipe/lvp_pipeline.c @@ -1256,6 +1256,7 @@ create_shader_object(struct lvp_device *device, const VkShaderCreateInfoEXT *pCr VkResult result = compile_spirv(device, &sinfo, &nir); if (result != VK_SUCCESS) goto fail; + nir->info.separate_shader = true; } else { assert(pCreateInfo->codeType == VK_SHADER_CODE_TYPE_BINARY_EXT); if (pCreateInfo->codeSize < SHA1_DIGEST_LENGTH + VK_UUID_SIZE + 1)