mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
broadcom/vc5: Disable TF on V3D 4.x when drawing with queries disabled.
On 3.x, we just don't flag the primitive as needing TF, but those primitive bits are now allocated to the new primitive types. Now we need to actually update the enable flag at draw time.
This commit is contained in:
parent
ef2cf9cc3c
commit
262208eb3c
2 changed files with 8 additions and 0 deletions
|
|
@ -604,6 +604,13 @@ v3dX(emit_state)(struct pipe_context *pctx)
|
|||
for (int i = 0; i < vc5->prog.bind_vs->num_tf_specs; i++) {
|
||||
cl_emit_prepacked(&job->bcl, &tf_specs[i]);
|
||||
}
|
||||
} else if (job->tf_enabled) {
|
||||
#if V3D_VERSION >= 40
|
||||
cl_emit(&job->bcl, TRANSFORM_FEEDBACK_SPECS, tfe) {
|
||||
tfe.enable = false;
|
||||
};
|
||||
job->tf_enabled = false;
|
||||
#endif /* V3D_VERSION >= 40 */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -164,6 +164,7 @@ vc5_set_active_query_state(struct pipe_context *pctx, boolean enable)
|
|||
|
||||
vc5->active_queries = enable;
|
||||
vc5->dirty |= VC5_DIRTY_OQ;
|
||||
vc5->dirty |= VC5_DIRTY_STREAMOUT;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue