iris: Only resolve compute resources for compute shaders

This commit is contained in:
Kenneth Graunke 2019-02-13 23:10:39 -08:00
parent 95a36bd55c
commit 7da53d7188
1 changed files with 3 additions and 4 deletions

View File

@ -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);