aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-04-04 11:53:42 +0200
committerErik Faye-Lund <[email protected]>2019-04-17 07:27:08 +0000
commitc62434f106fccc03b2da1e6f7300588517437437 (patch)
tree50a637406f8cba4e93057396f1893c8ed134a5a7 /src
parent18a721fd566eb484772496110eed1bf0d1db0c83 (diff)
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 <[email protected]> Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/virgl/virgl_texture.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/virgl/virgl_texture.c b/src/gallium/drivers/virgl/virgl_texture.c
index 12543eaeec4..8ca34537a5a 100644
--- a/src/gallium/drivers/virgl/virgl_texture.c
+++ b/src/gallium/drivers/virgl/virgl_texture.c
@@ -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);