diff options
author | Kenneth Graunke <[email protected]> | 2018-10-19 02:12:29 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:09 -0800 |
commit | 3f70956a4e29e350e71cdaa45b9fe4fee00296ea (patch) | |
tree | 60efdba4d2d693ee981a67772fe185d01efbefec /src/gallium/drivers/iris/iris_context.c | |
parent | 97125e9bb3883a9cb45137a005737ed5a089990d (diff) |
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
Diffstat (limited to 'src/gallium/drivers/iris/iris_context.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index c594f19beb9..14c5d1dbad9 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -42,7 +42,9 @@ iris_flush(struct pipe_context *ctx, struct iris_context *ice = (struct iris_context *)ctx; 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!!! if (fence) |