iris: PIPE_CONTROL workarounds for GPGPU mode
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 20 Nov 2018 17:12:54 +0000 (09:12 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index 1d34ef285473b2d35c2002801055c94201ab4d78..075753b170f5cbc6cf0ae39d9d9b65cbc8028b44 100644 (file)
@@ -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