From 2c237213973e1c515d79fe6eb7ea7e7d3f8032ea Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 20 Nov 2018 09:12:54 -0800 Subject: [PATCH] iris: PIPE_CONTROL workarounds for GPGPU mode --- src/gallium/drivers/iris/iris_state.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 1d34ef28547..075753b170f 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -4838,8 +4838,7 @@ get_post_sync_flags(enum pipe_control_flags flags) return flags; } -// XXX: compute support -#define IS_COMPUTE_PIPELINE(batch) (batch->engine != I915_EXEC_RENDER) +#define IS_COMPUTE_PIPELINE(batch) (batch->name == IRIS_BATCH_COMPUTE) /** * Emit a series of PIPE_CONTROL commands, taking into account any -- 2.30.2