Lines Matching defs:texture
74 * src: Both texture and SDMA paths need decompression. Use SDMA.
75 * dst: If overwriting the whole texture, discard CMASK and use
133 /* Copy from a full GPU texture to a transfer's staging one. */
151 /* Copy from a transfer's staging texture to a full GPU one. */
188 /* Each texture is an array of mipmap levels. Each level is
388 /* Copy the pixels to the new texture. */
494 /* Move a suballocated texture into a non-suballocated allocation. */
592 /* The number of samples can be specified independently of the texture. */
598 /* FMASK is allocated like an ordinary texture. */
1150 struct pipe_resource *texture,
1153 struct r600_texture *rtex = (struct r600_texture*)texture;
1157 enum pipe_format pipe_format = texture->format;
1176 * simultaneously (a flushed Z24S8 texture
1193 resource.target = texture->target;
1195 resource.width0 = texture->width0;
1196 resource.height0 = texture->height0;
1197 resource.depth0 = texture->depth0;
1198 resource.array_size = texture->array_size;
1199 resource.last_level = texture->last_level;
1200 resource.nr_samples = texture->nr_samples;
1202 resource.bind = texture->bind & ~PIPE_BIND_DEPTH_STENCIL;
1203 resource.flags = texture->flags | R600_RESOURCE_FLAG_FLUSHED_DEPTH;
1210 R600_ERR("failed to create temporary texture to hold flushed depth\n");
1220 * which is supposed to hold a subregion of the texture "orig" at the given
1237 /* We must set the correct texture target and dimensions for a 3D box. */
1284 struct pipe_resource *texture,
1291 struct r600_texture *rtex = (struct r600_texture*)texture;
1298 assert(!(texture->flags & R600_RESOURCE_FLAG_TRANSFER));
1304 * On dGPUs, the staging texture is always faster.
1320 /* Tiled textures need to be converted into a linear texture for CPU
1321 * access. The staging texture is always linear and is placed in GART.
1324 * texture in this case.
1326 * Use the staging texture for uploads if the underlying BO
1352 pipe_resource_reference(&trans->b.b.resource, texture);
1366 * First downsample the depth buffer to a temporary texture,
1373 r600_init_temp_resource_from_box(&resource, texture, box, level, 0);
1376 R600_ERR("failed to create temporary texture to hold untiled copy\n");
1384 R600_ERR("failed to create a temporary depth texture\n");
1389 r600_copy_region_with_blit(ctx, temp, 0, 0, 0, 0, texture, level, box);
1401 /* XXX: when discard is true, no need to read back from depth texture */
1402 if (!r600_init_flushed_depth_texture(ctx, texture, &staging_depth)) {
1403 R600_ERR("failed to create temporary texture to hold untiled copy\n");
1425 r600_init_temp_resource_from_box(&resource, texture, box, level,
1430 /* Create the temporary texture. */
1433 R600_ERR("failed to create temporary texture to hold untiled copy\n");
1473 struct pipe_resource *texture = transfer->resource;
1474 struct r600_texture *rtex = (struct r600_texture*)texture;
1478 ctx->resource_copy_region(ctx, texture, transfer->level,
1494 * Flush the gfx IB if we've allocated too much texture storage.
1515 struct pipe_resource *texture,
1525 assert(templ->u.tex.first_layer <= util_max_layer(texture, templ->u.tex.level));
1526 assert(templ->u.tex.last_layer <= util_max_layer(texture, templ->u.tex.level));
1529 pipe_resource_reference(&surface->base.texture, texture);
1586 pipe_resource_reference(&surface->texture, NULL);
1760 tex = (struct r600_texture *)fb->cbufs[i]->texture;
1769 if (fb->cbufs[i]->texture->last_level != 0) {