Lines Matching refs:priv

202     struct exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pPix);
205 if (!priv || !priv->tex)
208 transfer = pipe_get_transfer(exa->pipe, priv->tex, 0, 0,
216 util_copy_rect((unsigned char*)dst, priv->tex->format, dst_pitch, 0, 0,
234 struct exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pPix);
237 if (!priv || !priv->tex)
240 transfer = pipe_get_transfer(exa->pipe, priv->tex, 0, 0,
249 priv->tex->format, transfer->stride, 0, 0, w, h,
265 struct exa_pixmap_priv *priv;
267 priv = exaGetPixmapDriverPrivate(pPix);
269 if (!priv)
272 if (!priv->tex)
277 if (priv->map_count == 0)
279 assert(pPix->drawable.width <= priv->tex->width0);
280 assert(pPix->drawable.height <= priv->tex->height0);
282 priv->map_transfer =
283 pipe_get_transfer(exa->pipe, priv->tex, 0, 0,
291 if (!priv->map_transfer)
299 exa->pipe->transfer_map(exa->pipe, priv->map_transfer);
300 pPix->devKind = priv->map_transfer->stride;
303 priv->map_count++;
317 struct exa_pixmap_priv *priv;
318 priv = exaGetPixmapDriverPrivate(pPix);
320 if (!priv)
323 if (!priv->map_transfer)
328 if (--priv->map_count == 0) {
329 assert(priv->map_transfer);
330 exa->pipe->transfer_unmap(exa->pipe, priv->map_transfer);
331 exa->pipe->transfer_destroy(exa->pipe, priv->map_transfer);
332 priv->map_transfer = NULL;
348 struct exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pPixmap);
359 if (!priv || !priv->tex)
360 XORG_FALLBACK("%s", !priv ? "!priv" : "!priv->tex");
368 if (!exa->scrn->is_format_supported(exa->scrn, priv->tex->format,
369 priv->tex->target, 0,
371 XORG_FALLBACK("format %s", util_format_name(priv->tex->format));
374 return xorg_solid_bind_state(exa, priv, fg);
383 struct exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pPixmap);
398 xorg_solid(exa, priv, x0, y0, x1, y1) ;
407 struct exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pPixmap);
410 if (!priv)
429 struct exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pDstPixmap);
440 if (!priv || !priv->tex)
441 XORG_FALLBACK("pDst %s", !priv ? "!priv" : "!priv->tex");
444 XORG_FALLBACK("pSrc %s", !src_priv ? "!priv" : "!priv->tex");
452 if (!exa->scrn->is_format_supported(exa->scrn, priv->tex->format,
453 priv->tex->target, 0,
455 XORG_FALLBACK("pDst format %s", util_format_name(priv->tex->format));
463 exa->copy.dst = priv;
529 struct exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pPixmap);
532 if (!priv)
616 struct exa_pixmap_priv *priv;
631 priv = exaGetPixmapDriverPrivate(pDst);
632 if (!priv || !priv->tex)
633 XORG_FALLBACK("pDst %s", !priv ? "!priv" : "!priv->tex");
635 if (!exa->scrn->is_format_supported(exa->scrn, priv->tex->format,
636 priv->tex->target, 0,
638 XORG_FALLBACK("pDst format: %s", util_format_name(priv->tex->format));
640 if (priv->picture_format != pDstPicture->format)
642 render_format_name(priv->picture_format),
646 priv = exaGetPixmapDriverPrivate(pSrc);
647 if (!priv || !priv->tex)
648 XORG_FALLBACK("pSrc %s", !priv ? "!priv" : "!priv->tex");
650 if (!exa->scrn->is_format_supported(exa->scrn, priv->tex->format,
651 priv->tex->target, 0,
653 XORG_FALLBACK("pSrc format: %s", util_format_name(priv->tex->format));
655 if (!picture_check_formats(priv, pSrcPicture))
657 render_format_name(priv->picture_format),
663 priv = exaGetPixmapDriverPrivate(pMask);
664 if (!priv || !priv->tex)
665 XORG_FALLBACK("pMask %s", !priv ? "!priv" : "!priv->tex");
667 if (!exa->scrn->is_format_supported(exa->scrn, priv->tex->format,
668 priv->tex->target, 0,
670 XORG_FALLBACK("pMask format: %s", util_format_name(priv->tex->format));
672 if (!picture_check_formats(priv, pMaskPicture))
674 render_format_name(priv->picture_format),
692 struct exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pDst);
699 xorg_composite(exa, priv, srcX, srcY, maskX, maskY,
723 struct exa_pixmap_priv *priv;
725 priv = calloc(1, sizeof(struct exa_pixmap_priv));
726 if (!priv)
729 return priv;
735 struct exa_pixmap_priv *priv = (struct exa_pixmap_priv *)dPriv;
737 if (!priv)
740 pipe_resource_reference(&priv->tex, NULL);
742 free(priv);
748 struct exa_pixmap_priv *priv;
750 priv = exaGetPixmapDriverPrivate(pPixmap);
752 if (!priv)
755 if (priv->tex)
764 struct exa_pixmap_priv *priv;
765 priv = exaGetPixmapDriverPrivate(pPixmap);
767 if (!priv) {
772 priv->flags |= PIPE_BIND_SCANOUT;
780 struct exa_pixmap_priv *priv;
781 priv = exaGetPixmapDriverPrivate(pPixmap);
783 if (!priv) {
788 priv->flags |= PIPE_BIND_SHARED;
818 struct exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pPixmap);
822 if (!priv || pPixData)
829 if (priv->tex)
831 priv->tex->width0,
832 priv->tex->height0);
854 priv->width = width;
855 priv->height = height;
858 if ((exa->accel || priv->flags) &&
859 (!priv->tex ||
860 !size_match(width, priv->tex->width0) ||
861 !size_match(height, priv->tex->height0) ||
862 priv->tex_flags != priv->flags)) {
868 exa_get_pipe_format(depth, &template.format, &bitsPerPixel, &priv->picture_format);
869 if (ROUND_UP_TEXTURES && priv->flags == 0) {
881 template.bind = PIPE_BIND_RENDER_TARGET | priv->flags;
882 priv->tex_flags = priv->flags;
885 if (priv->tex) {
892 priv->tex,
896 pipe_resource_reference(&priv->tex, texture);
907 struct exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pPixmap);
909 pipe_resource_reference(&tex, priv->tex);
916 struct exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pPixmap);
920 if (!priv)
927 pipe_resource_reference(&priv->tex, tex);
928 priv->tex_flags = tex->bind & mask;
1065 xorg_gpu_surface(struct pipe_context *pipe, struct exa_pixmap_priv *priv)
1069 u_surface_default_template(&surf_tmpl, priv->tex,
1072 return pipe->create_surface(pipe, priv->tex, &surf_tmpl);