iris: Make blit code use actual aux usages

This commit is contained in:
Kenneth Graunke
2018-12-09 16:09:55 -08:00
parent bfc76d3525
commit b77d2dc71b

View File

@@ -306,9 +306,9 @@ iris_blit(struct pipe_context *ctx, const struct pipe_blit_info *info)
struct blorp_surf src_surf, dst_surf; struct blorp_surf src_surf, dst_surf;
iris_blorp_surf_for_resource(&src_surf, info->src.resource, iris_blorp_surf_for_resource(&src_surf, info->src.resource,
ISL_AUX_USAGE_NONE, false); src_aux_usage, false);
iris_blorp_surf_for_resource(&dst_surf, info->dst.resource, iris_blorp_surf_for_resource(&dst_surf, info->dst.resource,
ISL_AUX_USAGE_NONE, true); dst_aux_usage, true);
iris_resource_prepare_access(ice, batch, dst_res, info->dst.level, 1, iris_resource_prepare_access(ice, batch, dst_res, info->dst.level, 1,
info->dst.box.z, info->dst.box.depth, info->dst.box.z, info->dst.box.depth,