summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-02 16:16:57 -0700
committerJason Ekstrand <[email protected]>2015-10-02 16:16:57 -0700
commitadd99c4beb3fc08e21bae4cd2e288deb8a2c26b9 (patch)
treeb43250e32bd1ba0af28891f31e8c3a5e01c80bcb /src/vulkan/anv_pipeline.c
parentb68805f83c515916d4256f3b2f1ec67a662ca953 (diff)
anv: Add a back-door for passing NIR shaders directly into the pipeline
This will allow us to use NIR directly for meta operations rather than having to go through SPIR-V.
Diffstat (limited to 'src/vulkan/anv_pipeline.c')
-rw-r--r--src/vulkan/anv_pipeline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vulkan/anv_pipeline.c b/src/vulkan/anv_pipeline.c
index 833957a32e2..daf520f9714 100644
--- a/src/vulkan/anv_pipeline.c
+++ b/src/vulkan/anv_pipeline.c
@@ -47,6 +47,7 @@ VkResult anv_CreateShaderModule(
if (module == NULL)
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
+ module->nir = NULL;
module->size = pCreateInfo->codeSize;
memcpy(module->data, pCreateInfo->pCode, module->size);