[Intel-gfx] [PATCH] tools/null_state/gen9: Send atleast one valid component in VF state
Mika Kuoppala
mika.kuoppala at linux.intel.com
Tue Aug 4 07:03:05 PDT 2015
Arun Siluvery <arun.siluvery at linux.intel.com> writes:
> A programming restriction exists for this instruction, atleast one component
> of one valid vertex element must be enabled.
>
> Cc: Ben Widawsky <benjamin.widawsky at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Arun Siluvery <arun.siluvery at linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala at intel.com>
> ---
> tools/null_state_gen/intel_renderstate_gen9.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/tools/null_state_gen/intel_renderstate_gen9.c b/tools/null_state_gen/intel_renderstate_gen9.c
> index 6f808f8..b3766ea 100644
> --- a/tools/null_state_gen/intel_renderstate_gen9.c
> +++ b/tools/null_state_gen/intel_renderstate_gen9.c
> @@ -440,7 +440,12 @@ int gen9_setup_null_render_state(struct intel_batchbuffer *batch)
> /* Vertex buffers */
> gen8_emit_vertex_buffers(batch);
> gen8_emit_vertex_elements(batch);
> - OUT_CMD(GEN9_3DSTATE_COMPONENT_PACKING, 5);
> +
> + OUT_BATCH(GEN9_3DSTATE_COMPONENT_PACKING | 3);
> + OUT_BATCH(1);
> + OUT_BATCH(0);
> + OUT_BATCH(0);
> + OUT_BATCH(0);
>
> OUT_BATCH(GEN6_3DSTATE_VF_STATISTICS | 1 /* Enable */);
>
> --
> 1.9.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
More information about the Intel-gfx
mailing list