mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
iris: try and avoid pointless compute submissions
if apps don't use compute shaders, we don't even want to kick off the compute initialization batch
This commit is contained in:
parent
97125e9bb3
commit
3f70956a4e
1 changed files with 3 additions and 1 deletions
|
|
@ -42,7 +42,9 @@ iris_flush(struct pipe_context *ctx,
|
||||||
struct iris_context *ice = (struct iris_context *)ctx;
|
struct iris_context *ice = (struct iris_context *)ctx;
|
||||||
|
|
||||||
iris_batch_flush(&ice->render_batch);
|
iris_batch_flush(&ice->render_batch);
|
||||||
iris_batch_flush(&ice->compute_batch);
|
|
||||||
|
if (ice->compute_batch.contains_draw)
|
||||||
|
iris_batch_flush(&ice->compute_batch);
|
||||||
|
|
||||||
// XXX: bogus!!!
|
// XXX: bogus!!!
|
||||||
if (fence)
|
if (fence)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue