summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-11 10:31:25 -0800
committerJason Ekstrand <[email protected]>2016-01-11 11:06:06 -0800
commit9f4ba499d1a8bedab9b1659d30bc0de17a355fa0 (patch)
treec4d3c1d8fef5eed783d76dbfe3df4d195c37b272 /src/vulkan/anv_pipeline.c
parent83bf1f752dbd80722174d9df203fff1e1794e35d (diff)
nir/spirv: Take an entrypoint stage as well as a name
Diffstat (limited to 'src/vulkan/anv_pipeline.c')
-rw-r--r--src/vulkan/anv_pipeline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/anv_pipeline.c b/src/vulkan/anv_pipeline.c
index 769afe8ed72..53c7d1f8b74 100644
--- a/src/vulkan/anv_pipeline.c
+++ b/src/vulkan/anv_pipeline.c
@@ -113,8 +113,8 @@ anv_shader_compile_to_nir(struct anv_device *device,
assert(spirv[0] == SPIR_V_MAGIC_NUMBER);
assert(module->size % 4 == 0);
- entry_point = spirv_to_nir(spirv, module->size / 4, entrypoint_name,
- nir_options);
+ entry_point = spirv_to_nir(spirv, module->size / 4, stage,
+ entrypoint_name, nir_options);
nir = entry_point->shader;
assert(nir->stage == stage);
nir_validate_shader(nir);