diff options
author | Paul Berry <[email protected]> | 2012-12-12 13:37:45 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-12-18 08:31:03 -0800 |
commit | 61c1b065fbdd224fa547f035991210859c7af310 (patch) | |
tree | eceab4048cced598108409d2295287b0c5333ebb /src/mesa/drivers | |
parent | 8cf552b1823e6c0ea8ce0465937920b4cab83465 (diff) |
mesa: Change args to vbo_count_tessellated_primitives.
No functional change--this simply paves the way to allow futures
patches to call vbo_count_tessellated_primitives() during error
checking, before the _mesa_prim struct has been constructed.
This will be needed for GLES3, which requires draw calls to fail if
there is not enough space available in transform feedback buffers to
accommodate the primitives to be drawn.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 97a10771877..1ba839c3358 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -381,7 +381,9 @@ static void brw_update_primitive_count(struct brw_context *brw, const struct _mesa_prim *prim) { - uint32_t count = vbo_count_tessellated_primitives(prim); + uint32_t count + = vbo_count_tessellated_primitives(prim->mode, prim->count, + prim->num_instances); brw->sol.primitives_generated += count; if (brw->intel.ctx.TransformFeedback.CurrentObject->Active && !brw->intel.ctx.TransformFeedback.CurrentObject->Paused) { |