*/
if (params->src.enabled)
brw_cache_flush_for_read(brw, params->src.addr.buffer);
- brw_cache_flush_for_render(brw, params->dst.addr.buffer);
+ if (params->dst.enabled)
+ brw_cache_flush_for_render(brw, params->dst.addr.buffer);
+ if (params->depth.enabled)
+ brw_cache_flush_for_depth(brw, params->depth.addr.buffer);
+ if (params->stencil.enabled)
+ brw_cache_flush_for_depth(brw, params->stencil.addr.buffer);
brw_render_cache_set_check_flush(brw, params->dst.addr.buffer);
brw_select_pipeline(brw, BRW_RENDER_PIPELINE);