mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 20:00:11 +01:00
draw: flush pipeline before trying to allocate more hw vertices
This commit is contained in:
parent
e106b2d3d6
commit
a82e4996a1
3 changed files with 8 additions and 4 deletions
|
|
@ -175,10 +175,6 @@ draw_pt_arrays(struct draw_context *draw,
|
|||
frontend = draw->pt.front.vcache;
|
||||
#endif
|
||||
|
||||
/* XXX: need to flush to get prim_vbuf.c to release its allocation??
|
||||
*/
|
||||
draw_do_flush( draw, DRAW_FLUSH_BACKEND );
|
||||
|
||||
frontend->prepare( frontend, prim, middle );
|
||||
|
||||
frontend->run( frontend,
|
||||
|
|
|
|||
|
|
@ -243,6 +243,10 @@ static void fetch_emit_run( struct draw_pt_middle_end *middle,
|
|||
struct draw_context *draw = feme->draw;
|
||||
void *hw_verts;
|
||||
|
||||
/* XXX: need to flush to get prim_vbuf.c to release its allocation??
|
||||
*/
|
||||
draw_do_flush( draw, DRAW_FLUSH_BACKEND );
|
||||
|
||||
hw_verts = draw->render->allocate_vertices( draw->render,
|
||||
(ushort)feme->hw_vertex_size,
|
||||
(ushort)fetch_count );
|
||||
|
|
|
|||
|
|
@ -177,6 +177,10 @@ static void fetch_pipeline_run( struct draw_pt_middle_end *middle,
|
|||
void *hw_verts;
|
||||
float *out;
|
||||
|
||||
/* XXX: need to flush to get prim_vbuf.c to release its allocation??
|
||||
*/
|
||||
draw_do_flush( draw, DRAW_FLUSH_BACKEND );
|
||||
|
||||
hw_verts = draw->render->allocate_vertices(draw->render,
|
||||
(ushort)fpme->hw_vertex_size,
|
||||
(ushort)fetch_count);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue