draw: make draw_geometry_shader_run() return void

The return value was always zero and unused.

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19024>
This commit is contained in:
Brian Paul
2022-10-06 11:08:16 -06:00
committed by Marge Bot
parent 8d8683ab1d
commit 0a809fca61
2 changed files with 10 additions and 11 deletions
+1 -3
View File
@@ -567,7 +567,7 @@ gs_tri_adj(struct draw_geometry_shader *shader,
/**
* Execute geometry shader.
*/
int
void
draw_geometry_shader_run(struct draw_geometry_shader *shader,
const void *constants[PIPE_MAX_CONSTANT_BUFFERS],
const unsigned constants_size[PIPE_MAX_CONSTANT_BUFFERS],
@@ -718,8 +718,6 @@ draw_geometry_shader_run(struct draw_geometry_shader *shader,
debug_printf("stream %d: prims = %d verts = %d\n", i,
output_prims[i].primitive_count, output_verts[i].count);
#endif
return 0;
}
+9 -8
View File
@@ -135,14 +135,15 @@ draw_geometry_shader_new_instance(struct draw_geometry_shader *gs);
* The vertex shader can emit any number of vertices as long as it's
* smaller than the GS_MAX_OUTPUT_VERTICES shader property.
*/
int draw_geometry_shader_run(struct draw_geometry_shader *shader,
const void *constants[PIPE_MAX_CONSTANT_BUFFERS],
const unsigned constants_size[PIPE_MAX_CONSTANT_BUFFERS],
const struct draw_vertex_info *input_verts,
const struct draw_prim_info *input_prim,
const struct tgsi_shader_info *input_info,
struct draw_vertex_info *output_verts,
struct draw_prim_info *output_prims );
void
draw_geometry_shader_run(struct draw_geometry_shader *shader,
const void *constants[PIPE_MAX_CONSTANT_BUFFERS],
const unsigned constants_size[PIPE_MAX_CONSTANT_BUFFERS],
const struct draw_vertex_info *input_verts,
const struct draw_prim_info *input_prim,
const struct tgsi_shader_info *input_info,
struct draw_vertex_info *output_verts,
struct draw_prim_info *output_prims );
void
draw_geometry_shader_prepare(struct draw_geometry_shader *shader,