mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
virgl: tmp_resource -> templ
This isn't the temporary resource itself, it's the template that we'll create the resource from. So let's name it appropriately. Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
parent
18a721fd56
commit
c62434f106
1 changed files with 3 additions and 4 deletions
|
|
@ -131,11 +131,10 @@ static void *virgl_texture_transfer_map(struct pipe_context *ctx,
|
|||
ctx->flush(ctx, NULL, 0);
|
||||
|
||||
if (resource->nr_samples > 1) {
|
||||
struct pipe_resource tmp_resource;
|
||||
virgl_init_temp_resource_from_box(&tmp_resource, resource, box,
|
||||
level, 0);
|
||||
struct pipe_resource templ;
|
||||
virgl_init_temp_resource_from_box(&templ, resource, box, level, 0);
|
||||
|
||||
trans->resolve_tmp = (struct virgl_resource *)ctx->screen->resource_create(ctx->screen, &tmp_resource);
|
||||
trans->resolve_tmp = (struct virgl_resource *)ctx->screen->resource_create(ctx->screen, &templ);
|
||||
|
||||
virgl_copy_region_with_blit(ctx, &trans->resolve_tmp->u.b, 0, 0, 0, 0, resource, level, box);
|
||||
ctx->flush(ctx, NULL, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue