mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
i965: flush batch buffer when getting the maximum. This makes
some 3D programs such as pymol work well.
This commit is contained in:
parent
d69a596193
commit
7d33f94198
1 changed files with 6 additions and 0 deletions
|
|
@ -330,6 +330,7 @@ static GLboolean brw_try_draw_prims( GLcontext *ctx,
|
|||
else {
|
||||
/* Otherwise, explicitly do the cliprects at this point:
|
||||
*/
|
||||
GLuint nprims = 0;
|
||||
for (j = 0; j < brw->intel.numClipRects; j++) {
|
||||
brw_emit_cliprect(brw, &brw->intel.pClipRects[j]);
|
||||
|
||||
|
|
@ -337,6 +338,11 @@ static GLboolean brw_try_draw_prims( GLcontext *ctx,
|
|||
*/
|
||||
for (i = 0; i < nr_prims; i++) {
|
||||
brw_emit_prim(brw, &prim[i]);
|
||||
|
||||
if (++nprims == VBO_MAX_PRIM) {
|
||||
intel_batchbuffer_flush(brw->intel.batch);
|
||||
nprims = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue