diff options
author | Jason Ekstrand <[email protected]> | 2015-10-02 16:16:57 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-10-02 16:16:57 -0700 |
commit | add99c4beb3fc08e21bae4cd2e288deb8a2c26b9 (patch) | |
tree | b43250e32bd1ba0af28891f31e8c3a5e01c80bcb /src/vulkan/anv_pipeline.c | |
parent | b68805f83c515916d4256f3b2f1ec67a662ca953 (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.c | 1 |
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); |