mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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.
This commit is contained in:
parent
1138775d79
commit
23aa3c552c
2 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -315,7 +315,6 @@ enum pipe_error svga_hwtnl_prim( struct svga_hwtnl *hwtnl,
|
|||
break;
|
||||
}
|
||||
|
||||
assert(!stride || width <= stride);
|
||||
if (max_index != ~0) {
|
||||
assert(offset + (index_bias + max_index) * stride + width <= size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue