From: Jason Ekstrand Date: Thu, 22 Oct 2015 01:16:50 +0000 (-0700) Subject: Fix a couple of dereferences X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d35e4361f6b2979813103ddeb7a79bd042263a6;p=mesa.git Fix a couple of dereferences --- diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c index c9133f741c6..b201019bab1 100644 --- a/src/glsl/nir/spirv_to_nir.c +++ b/src/glsl/nir/spirv_to_nir.c @@ -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;