summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/spirv2nir.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-12-30 17:00:16 -0800
committerJason Ekstrand <[email protected]>2015-12-30 17:45:43 -0800
commite993e45eb157014fe6a7f65be8edda9fd716dc52 (patch)
tree0cdc5ad597d54b66a0cba7666488248bbb42c30f /src/glsl/nir/spirv2nir.c
parentdb3a64fcea6318ab5ded186a347e732b7956f1f7 (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.c3
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);
}