diff options
author | Jason Ekstrand <[email protected]> | 2015-12-30 17:00:16 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-12-30 17:45:43 -0800 |
commit | e993e45eb157014fe6a7f65be8edda9fd716dc52 (patch) | |
tree | 0cdc5ad597d54b66a0cba7666488248bbb42c30f /src/glsl/nir/spirv2nir.c | |
parent | db3a64fcea6318ab5ded186a347e732b7956f1f7 (diff) |
nir/spirv: Get the shader stage from the SPIR-V
Previously, we depended on it being passed in.
Diffstat (limited to 'src/glsl/nir/spirv2nir.c')
-rw-r--r-- | src/glsl/nir/spirv2nir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/nir/spirv2nir.c b/src/glsl/nir/spirv2nir.c index 6cf891517c7..f86825bedc5 100644 --- a/src/glsl/nir/spirv2nir.c +++ b/src/glsl/nir/spirv2nir.c @@ -49,7 +49,6 @@ int main(int argc, char **argv) const void *map = mmap(NULL, len, PROT_READ, MAP_PRIVATE, fd, 0); assert(map != NULL); - nir_shader *shader = spirv_to_nir(map, MESA_SHADER_FRAGMENT, - word_count, NULL); + nir_shader *shader = spirv_to_nir(map, word_count, NULL); nir_print_shader(shader, stderr); } |