• Home
  • Raw
  • Download

Lines Matching refs:pres

238    struct pipe_resource *pres = vtransfer->base.resource;  in virgl_transfer_map_size()  local
247 stride = util_format_get_stride(pres->format, box->width); in virgl_transfer_map_size()
248 layer_stride = util_format_get_2d_size(pres->format, stride, box->height); in virgl_transfer_map_size()
250 if (pres->target == PIPE_TEXTURE_CUBE || in virgl_transfer_map_size()
251 pres->target == PIPE_TEXTURE_CUBE_ARRAY || in virgl_transfer_map_size()
252 pres->target == PIPE_TEXTURE_3D || in virgl_transfer_map_size()
253 pres->target == PIPE_TEXTURE_2D_ARRAY) { in virgl_transfer_map_size()
255 } else if (pres->target == PIPE_TEXTURE_1D_ARRAY) { in virgl_transfer_map_size()
635 struct pipe_resource *pres, in virgl_resource_create_transfer() argument
642 enum pipe_format format = pres->format; in virgl_resource_create_transfer()
647 if (pres->target == PIPE_TEXTURE_CUBE || in virgl_resource_create_transfer()
648 pres->target == PIPE_TEXTURE_CUBE_ARRAY || in virgl_resource_create_transfer()
649 pres->target == PIPE_TEXTURE_3D || in virgl_resource_create_transfer()
650 pres->target == PIPE_TEXTURE_2D_ARRAY) { in virgl_resource_create_transfer()
653 else if (pres->target == PIPE_TEXTURE_1D_ARRAY) { in virgl_resource_create_transfer()
656 } else if (pres->target == PIPE_BUFFER) { in virgl_resource_create_transfer()
671 pipe_resource_reference(&trans->base.resource, pres); in virgl_resource_create_transfer()
673 vws->resource_reference(vws, &trans->hw_res, virgl_resource(pres)->hw_res); in virgl_resource_create_transfer()