These have become one-liners now so they can be easily inlined.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3875>
* data.
*/
if (params->src.enabled)
- iris_cache_flush_for_read(batch, params->src.addr.buffer);
+ iris_emit_buffer_barrier_for(batch, params->src.addr.buffer,
+ IRIS_DOMAIN_OTHER_READ);
if (params->dst.enabled) {
iris_cache_flush_for_render(batch, params->dst.addr.buffer,
params->dst.view.format,
params->dst.aux_usage);
}
if (params->depth.enabled)
- iris_cache_flush_for_depth(batch, params->depth.addr.buffer);
+ iris_emit_buffer_barrier_for(batch, params->depth.addr.buffer,
+ IRIS_DOMAIN_DEPTH_WRITE);
if (params->stencil.enabled)
- iris_cache_flush_for_depth(batch, params->stencil.addr.buffer);
+ iris_emit_buffer_barrier_for(batch, params->stencil.addr.buffer,
+ IRIS_DOMAIN_DEPTH_WRITE);
iris_require_command_space(batch, 1400);
void iris_postdraw_update_resolve_tracking(struct iris_context *ice,
struct iris_batch *batch);
void iris_flush_depth_and_render_caches(struct iris_batch *batch);
-void iris_cache_flush_for_read(struct iris_batch *batch, struct iris_bo *bo);
void iris_cache_flush_for_render(struct iris_batch *batch,
struct iris_bo *bo,
enum isl_format format,
enum isl_aux_usage aux_usage);
-void iris_cache_flush_for_depth(struct iris_batch *batch, struct iris_bo *bo);
int iris_get_driver_query_info(struct pipe_screen *pscreen, unsigned index,
struct pipe_driver_query_info *info);
int iris_get_driver_query_group_info(struct pipe_screen *pscreen,
isv->view.array_len);
}
- iris_cache_flush_for_read(batch, res->bo);
+ iris_emit_buffer_barrier_for(batch, res->bo, IRIS_DOMAIN_OTHER_READ);
}
}
aux_usage, false);
}
- iris_cache_flush_for_read(batch, res->bo);
+ iris_emit_buffer_barrier_for(batch, res->bo, IRIS_DOMAIN_OTHER_READ);
}
}
zs_surf->u.tex.level,
zs_surf->u.tex.first_layer,
num_layers);
- iris_cache_flush_for_depth(batch, z_res->bo);
+ iris_emit_buffer_barrier_for(batch, z_res->bo,
+ IRIS_DOMAIN_DEPTH_WRITE);
}
if (s_res) {
- iris_cache_flush_for_depth(batch, s_res->bo);
+ iris_emit_buffer_barrier_for(batch, s_res->bo,
+ IRIS_DOMAIN_DEPTH_WRITE);
}
}
}
PIPE_CONTROL_CONST_CACHE_INVALIDATE);
}
-void
-iris_cache_flush_for_read(struct iris_batch *batch,
- struct iris_bo *bo)
-{
- iris_emit_buffer_barrier_for(batch, bo, IRIS_DOMAIN_OTHER_READ);
-}
-
static void *
format_aux_tuple(enum isl_format format, enum isl_aux_usage aux_usage)
{
}
}
-void
-iris_cache_flush_for_depth(struct iris_batch *batch,
- struct iris_bo *bo)
-{
- iris_emit_buffer_barrier_for(batch, bo, IRIS_DOMAIN_DEPTH_WRITE);
-}
-
static void
iris_resolve_color(struct iris_context *ice,
struct iris_batch *batch,