From: Eric Anholt Date: Thu, 25 Apr 2019 00:25:08 +0000 (-0700) Subject: v3d: Fill in the ignored segment size fields to appease new simulator. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=448fc3ea427ed0edebe2ab5f81c585a5273bafd3;p=mesa.git v3d: Fill in the ignored segment size fields to appease new simulator. We are assured that the input segment size field is ignored for !separate_segs mode, and now the simulator wants an in-range value set regardless of whether it's functionally ignored or not. --- diff --git a/src/gallium/drivers/v3d/v3dx_draw.c b/src/gallium/drivers/v3d/v3dx_draw.c index 14e95c71204..486b6cc9b12 100644 --- a/src/gallium/drivers/v3d/v3dx_draw.c +++ b/src/gallium/drivers/v3d/v3dx_draw.c @@ -261,9 +261,11 @@ v3d_emit_gl_shader_state(struct v3d_context *v3d, v3d->prog.vs->prog_data.vs->separate_segments; shader.coordinate_shader_input_vpm_segment_size = - v3d->prog.cs->prog_data.vs->vpm_input_size; + v3d->prog.cs->prog_data.vs->separate_segments ? + v3d->prog.cs->prog_data.vs->vpm_input_size : 1; shader.vertex_shader_input_vpm_segment_size = - v3d->prog.vs->prog_data.vs->vpm_input_size; + v3d->prog.vs->prog_data.vs->separate_segments ? + v3d->prog.vs->prog_data.vs->vpm_input_size : 1; shader.coordinate_shader_output_vpm_segment_size = v3d->prog.cs->prog_data.vs->vpm_output_size;