mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-03 13:18:17 +02:00
Fix a couple of dereferences
This commit is contained in:
parent
55a7ee730c
commit
3d35e4361f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue