Fix a couple of dereferences
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Oct 2015 01:16:50 +0000 (18:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Oct 2015 01:16:50 +0000 (18:16 -0700)
src/glsl/nir/spirv_to_nir.c

index c9133f741c65a56ef3c4faef2d36f309274d9736..b201019bab158becf025b2312ca03cdbd7520d00 100644 (file)
@@ -2518,7 +2518,7 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
       case SpvExecutionModeInputQuads:
       case SpvExecutionModeInputIsolines:
          if (b->shader->stage == MESA_SHADER_GEOMETRY) {
-            b->shader.info.gs.vertices_in =
+            b->shader->info.gs.vertices_in =
                vertices_in_from_spv_execution_mode(mode);
          } else {
             assert(!"Tesselation shaders not yet supported");
@@ -2529,7 +2529,7 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
       case SpvExecutionModeOutputLineStrip:
       case SpvExecutionModeOutputTriangleStrip:
          assert(b->shader->stage == MESA_SHADER_GEOMETRY);
-         b->shader.info.gs.output_primitive =
+         b->shader->info.gs.output_primitive =
             gl_primitive_from_spv_execution_mode(mode);
          break;