Home | History | Annotate | Download | only in radeonsi

Lines Matching full:texture

39 /* Copy from a full GPU texture to a transfer's staging one. */
43 struct pipe_resource *texture = transfer->resource;
46 0, 0, 0, 0, texture, transfer->level,
51 /* Copy from a transfer's staging texture to a full GPU one. */
55 struct pipe_resource *texture = transfer->resource;
63 ctx->resource_copy_region(ctx, texture, transfer->level,
265 struct pipe_resource *texture,
270 struct r600_resource_texture *rtex = (struct r600_resource_texture*)texture;
276 /* We cannot map a tiled texture directly because the data is
290 /* XXX: Use a staging texture for uploads if the underlying BO
301 if (!permit_hardware_blit(ctx->screen, texture) ||
302 (texture->flags & R600_RESOURCE_FLAG_TRANSFER))
311 pipe_resource_reference(&trans->transfer.resource, texture);
318 /* XXX: when discard is true, no need to read back from depth texture
320 r = r600_texture_depth_flush(ctx, texture, FALSE);
322 R600_ERR("failed to create temporary texture to hold untiled copy\n");
332 resource.format = texture->format;
342 /* For texture reading, the temporary (detiled) texture is used as
343 * a render target when blitting from a tiled texture. */
347 /* For texture writing, the temporary texture is used as a sampler
348 * when blitting into a tiled texture. */
352 /* Create the temporary texture. */
355 R600_ERR("failed to create temporary texture to hold untiled copy\n");
380 struct pipe_resource *texture = transfer->resource;
381 struct r600_resource_texture *rtex = (struct r600_resource_texture*)texture;
551 struct pipe_resource *texture,
554 struct r600_resource_texture *rtex = (struct r600_resource_texture*)texture;
564 pipe_resource_reference(&surface->base.texture, texture);
570 surface->base.texture = texture;
581 pipe_resource_reference(&surface->texture, NULL);
628 struct pipe_resource *texture, boolean just_create)
630 struct r600_resource_texture *rtex = (struct r600_resource_texture*)texture;
636 resource.target = texture->target;
637 resource.format = texture->format;
638 resource.width0 = texture->width0;
639 resource.height0 = texture->height0;
640 resource.depth0 = texture->depth0;
641 resource.array_size = texture->array_size;
642 resource.last_level = texture->last_level;
643 resource.nr_samples = texture->nr_samples;
645 resource.bind = texture->bind | PIPE_BIND_DEPTH_STENCIL;
646 resource.flags = R600_RESOURCE_FLAG_TRANSFER | texture->flags;
650 R600_ERR("failed to create temporary texture to hold untiled copy\n");
659 /* XXX: only do this if the depth texture has actually changed: