From 5afac62b28ad3061928d623727a802f975eaae46 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 30 Dec 2015 17:32:03 -0800 Subject: [PATCH] nir/spirv: Handle OpLine --- src/glsl/nir/spirv/spirv_to_nir.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/glsl/nir/spirv/spirv_to_nir.c b/src/glsl/nir/spirv/spirv_to_nir.c index e5c99cd..1118d75 100644 --- a/src/glsl/nir/spirv/spirv_to_nir.c +++ b/src/glsl/nir/spirv/spirv_to_nir.c @@ -3248,9 +3248,6 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode, /* TODO */ break; - case SpvOpLine: - break; /* Ignored for now */ - case SpvOpExecutionMode: case SpvOpDecorationGroup: case SpvOpDecorate: @@ -3380,7 +3377,6 @@ vtn_handle_variable_or_type_instruction(struct vtn_builder *b, SpvOp opcode, case SpvOpString: case SpvOpName: case SpvOpMemberName: - case SpvOpLine: case SpvOpDecorationGroup: case SpvOpDecorate: case SpvOpMemberDecorate: @@ -3389,6 +3385,9 @@ vtn_handle_variable_or_type_instruction(struct vtn_builder *b, SpvOp opcode, assert(!"Invalid opcode types and variables section"); break; + case SpvOpLine: + break; /* Ignored for now */ + case SpvOpTypeVoid: case SpvOpTypeBool: case SpvOpTypeInt: @@ -3440,6 +3439,9 @@ vtn_handle_body_instruction(struct vtn_builder *b, SpvOp opcode, const uint32_t *w, unsigned count) { switch (opcode) { + case SpvOpLine: + break; /* Ignored for now */ + case SpvOpLabel: { struct vtn_block *block = vtn_value(b, w[1], vtn_value_type_block)->block; assert(block->block == nir_cursor_current_block(b->nb.cursor)); -- 2.7.4