summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-02-13 23:10:39 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:12 -0800
commit7da53d7188292f03a4e5f52b98c6c1ba6da2783e (patch)
tree8e703045d572d670c1ad88c7e04901039b5fe11d /src/gallium/drivers/iris
parent95a36bd55c64c870ed30c64988936243ac803a33 (diff)
iris: Only resolve compute resources for compute shaders
Diffstat (limited to 'src/gallium/drivers/iris')
-rw-r--r--src/gallium/drivers/iris/iris_draw.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/iris/iris_draw.c b/src/gallium/drivers/iris/iris_draw.c
index 12637fd41f3..9dc102d2b70 100644
--- a/src/gallium/drivers/iris/iris_draw.c
+++ b/src/gallium/drivers/iris/iris_draw.c
@@ -180,10 +180,9 @@ iris_launch_grid(struct pipe_context *ctx, const struct pipe_grid_info *grid)
/* We can't do resolves on the compute engine, so awkwardly, we have to
* do them on the render batch...
*/
- for (gl_shader_stage stage = 0; stage < MESA_SHADER_STAGES; stage++) {
- iris_predraw_resolve_inputs(ice, &ice->batches[IRIS_BATCH_RENDER],
- &ice->state.shaders[stage], NULL, false);
- }
+ iris_predraw_resolve_inputs(ice, &ice->batches[IRIS_BATCH_RENDER],
+ &ice->state.shaders[MESA_SHADER_COMPUTE],
+ NULL, false);
iris_batch_maybe_flush(batch, 1500);