[Mesa-dev] [PATCH 08/15] i965: Reserve space for "Vertex Count" in GS outputs.
Anuj Phogat
anuj.phogat at gmail.com
Wed Nov 13 12:22:43 PST 2013
On Tue, Nov 12, 2013 at 5:51 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
> src/mesa/drivers/dri/i965/brw_vec4_gs.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_vec4_gs.c b/src/mesa/drivers/dri/i965/brw_vec4_gs.c
> index b52d646..e802c1e 100644
> --- a/src/mesa/drivers/dri/i965/brw_vec4_gs.c
> +++ b/src/mesa/drivers/dri/i965/brw_vec4_gs.c
> @@ -194,6 +194,12 @@ do_gs_prog(struct brw_context *brw,
> c.prog_data.output_vertex_size_hwords * 32 * gp->program.VerticesOut;
> output_size_bytes += 32 * c.prog_data.control_data_header_size_hwords;
>
> + /* Broadwell stores "Vertex Count" as a full 8 DWord (32 byte) URB output,
> + * which comes before the conttrol header.
typo in 'control'.
> + */
> + if (brw->gen >= 8)
> + output_size_bytes += 32;
> +
> assert(output_size_bytes >= 1);
> if (output_size_bytes > GEN7_MAX_GS_URB_ENTRY_SIZE_BYTES)
> return false;
> --
> 1.8.3.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list