From 23aa3c552cc54a3242142b82916090f8b7b32e44 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 15 Dec 2010 12:17:26 +0100 Subject: svga, glhd: Remove incorrect assert and add note Stride can be lower then the size of the attribute. But should probably be aligned to component size atleast for floats. --- src/gallium/drivers/galahad/glhd_context.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/galahad') diff --git a/src/gallium/drivers/galahad/glhd_context.c b/src/gallium/drivers/galahad/glhd_context.c index a572ad22bd0..8cbf0b1de4a 100644 --- a/src/gallium/drivers/galahad/glhd_context.c +++ b/src/gallium/drivers/galahad/glhd_context.c @@ -381,6 +381,8 @@ galahad_create_vertex_elements_state(struct pipe_context *_pipe, struct galahad_context *glhd_pipe = galahad_context(_pipe); struct pipe_context *pipe = glhd_pipe->pipe; + /* XXX check if stride lines up with element size, at least for floats */ + return pipe->create_vertex_elements_state(pipe, num_elements, vertex_elements); -- cgit v1.2.3