mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 12:18:09 +02:00
iris: Use texture preparation helper in iris_blit
Use iris_resource_prepare_texture in iris_blit to avoid partial resolves for sRGB <-> linear texture views. This affects a trace of L4D2. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8340>
This commit is contained in:
parent
04d73e2dc2
commit
51d26e2edf
1 changed files with 2 additions and 6 deletions
|
|
@ -410,12 +410,8 @@ iris_blit(struct pipe_context *ctx, const struct pipe_blit_info *info)
|
|||
enum isl_aux_usage src_aux_usage =
|
||||
iris_resource_texture_aux_usage(ice, src_res, src_fmt.fmt);
|
||||
|
||||
bool src_clear_supported = isl_aux_usage_has_fast_clears(src_aux_usage) &&
|
||||
src_res->surf.format == src_fmt.fmt;
|
||||
|
||||
iris_resource_prepare_access(ice, src_res, info->src.level, 1,
|
||||
info->src.box.z, info->src.box.depth,
|
||||
src_aux_usage, src_clear_supported);
|
||||
iris_resource_prepare_texture(ice, src_res, src_fmt.fmt, info->src.level,
|
||||
1, info->src.box.z, info->src.box.depth);
|
||||
iris_emit_buffer_barrier_for(batch, src_res->bo, IRIS_DOMAIN_OTHER_READ);
|
||||
|
||||
struct iris_format_info dst_fmt =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue