mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
zink: remove buffer valid range tracking from blit
I copy/pasted too hard. this code could never be reached Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16877>
This commit is contained in:
parent
79685199f4
commit
de63ccfc1e
1 changed files with 0 additions and 9 deletions
|
|
@ -47,9 +47,6 @@ blit_resolve(struct zink_context *ctx, const struct pipe_blit_info *info, bool *
|
|||
if (src->format != zink_get_format(screen, info->src.format) ||
|
||||
dst->format != zink_get_format(screen, info->dst.format))
|
||||
return false;
|
||||
if (info->dst.resource->target == PIPE_BUFFER)
|
||||
util_range_add(info->dst.resource, &dst->valid_buffer_range,
|
||||
info->dst.box.x, info->dst.box.x + info->dst.box.width);
|
||||
|
||||
apply_dst_clears(ctx, info, false);
|
||||
zink_fb_clears_apply_region(ctx, info->src.resource, zink_rect_from_box(&info->src.box));
|
||||
|
|
@ -172,9 +169,6 @@ blit_native(struct zink_context *ctx, const struct pipe_blit_info *info, bool *n
|
|||
zink_batch_reference_resource_rw(batch, dst, true);
|
||||
|
||||
zink_resource_setup_transfer_layouts(ctx, src, dst);
|
||||
if (info->dst.resource->target == PIPE_BUFFER)
|
||||
util_range_add(info->dst.resource, &dst->valid_buffer_range,
|
||||
info->dst.box.x, info->dst.box.x + info->dst.box.width);
|
||||
VkImageBlit region = {0};
|
||||
region.srcSubresource.aspectMask = src->aspect;
|
||||
region.srcSubresource.mipLevel = info->src.level;
|
||||
|
|
@ -344,9 +338,6 @@ zink_blit(struct pipe_context *pctx,
|
|||
*/
|
||||
apply_dst_clears(ctx, info, true);
|
||||
|
||||
if (info->dst.resource->target == PIPE_BUFFER)
|
||||
util_range_add(info->dst.resource, &dst->valid_buffer_range,
|
||||
info->dst.box.x, info->dst.box.x + info->dst.box.width);
|
||||
/* this will draw a full-resource quad, so ignore existing data */
|
||||
if (util_blit_covers_whole_resource(info))
|
||||
pctx->invalidate_resource(pctx, info->dst.resource);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue