[Mesa-dev] [PATCH 4/6] draw/gs: Fetch more than one primitive per invocation
Brian Paul
brianp at vmware.com
Wed Mar 27 07:16:28 PDT 2013
On 03/26/2013 10:38 AM, Zack Rusin wrote:
> Allows executing gs on up to 4 primitives at a time. Will also be
> required by the llvm code because there we definitely don't want
> to flush with just a single primitive.
>
> Signed-off-by: Zack Rusin<zackr at vmware.com>
> ---
> src/gallium/auxiliary/draw/draw_gs.c | 54 ++++++++++++++++++++++++++--------
> src/gallium/auxiliary/draw/draw_gs.h | 1 +
> 2 files changed, 42 insertions(+), 13 deletions(-)
>
> diff --git a/src/gallium/auxiliary/draw/draw_gs.c b/src/gallium/auxiliary/draw/draw_gs.c
> index 81d9140..2b50c9c 100644
> --- a/src/gallium/auxiliary/draw/draw_gs.c
> +++ b/src/gallium/auxiliary/draw/draw_gs.c
> @@ -58,6 +58,12 @@ draw_gs_get_input_index(int semantic, int index,
> return -1;
> }
>
Could you move some of the commit msg info to a comment on this
function to explain what's going on?
> +static INLINE boolean
> +draw_gs_should_flush(struct draw_geometry_shader *shader)
> +{
> + return (shader->fetched_prim_count == 4);
> +}
> +
> /*#define DEBUG_OUTPUTS 1*/
> static void
> tgsi_fetch_gs_outputs(struct draw_geometry_shader *shader,
-Brian
More information about the mesa-dev
mailing list