fetch_count,
fpme->vertex_size,
fpme->vertex_size);
- if (gshader)
+ if (gshader) {
fetch_count =
draw_geometry_shader_run(gshader,
(const float (*)[4])pipeline_verts->data,
fetch_count,
fpme->vertex_size,
fpme->vertex_size);
+ debug_assert(fetch_count <= alloc_count);
+ }
}
/* stream output needs to be done before clipping */
fpme->vertex_size,
fpme->vertex_size);
- if (geometry_shader)
- count = draw_geometry_shader_run(geometry_shader,
- (const float (*)[4])pipeline_verts->data,
- ( float (*)[4])pipeline_verts->data,
- draw->pt.user.gs_constants,
- count,
- fpme->vertex_size,
- fpme->vertex_size);
+ if (geometry_shader) {
+ count =
+ draw_geometry_shader_run(geometry_shader,
+ (const float (*)[4])pipeline_verts->data,
+ ( float (*)[4])pipeline_verts->data,
+ draw->pt.user.gs_constants,
+ count,
+ fpme->vertex_size,
+ fpme->vertex_size);
+ debug_assert(count <= alloc_count);
+ }
}
/* stream output needs to be done before clipping */
fpme->vertex_size,
fpme->vertex_size);
- if (geometry_shader)
- count = draw_geometry_shader_run(geometry_shader,
- (const float (*)[4])pipeline_verts->data,
- ( float (*)[4])pipeline_verts->data,
- draw->pt.user.gs_constants,
- count,
- fpme->vertex_size,
- fpme->vertex_size);
+ if (geometry_shader) {
+ count =
+ draw_geometry_shader_run(geometry_shader,
+ (const float (*)[4])pipeline_verts->data,
+ ( float (*)[4])pipeline_verts->data,
+ draw->pt.user.gs_constants,
+ count,
+ fpme->vertex_size,
+ fpme->vertex_size);
+ debug_assert(count <= alloc_count);
+ }
}
/* stream output needs to be done before clipping */