nir/spirv: Handle OpLine
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 Dec 2015 01:32:03 +0000 (17:32 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 Dec 2015 01:45:43 +0000 (17:45 -0800)
src/glsl/nir/spirv/spirv_to_nir.c

index e5c99cd7bf478ab08c90c3ae2de72c0247bb9841..1118d75351ddfa2f3773a0537abf98b9d50abbf1 100644 (file)
@@ -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));