Lines Matching refs:pPict
168 R128CheckCompositeTexture(PicturePtr pPict, PicturePtr pDstPict, int op)
175 unsigned int repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
178 if (!R128GetDatatypePict2(pPict->format, &tmp1)) return FALSE;
180 if (pPict->pDrawable) {
181 int w = pPict->pDrawable->width;
182 int h = pPict->pDrawable->height;
184 if (pPict->repeat && ((w & (w - 1)) != 0 || (h & (h - 1)) != 0)) {
191 if (pPict->filter != PictFilterNearest && pPict->filter != PictFilterBilinear) {
194 pPict->filter));
199 if (pPict->transform != 0 && repeatType == RepeatNone && PICT_FORMAT_A(pPict->format) == 0) {
207 if (!R128TransformAffineOrScaled(pPict->transform)) {
302 R128TextureSetup(PicturePtr pPict, PixmapPtr pPix, int unit, uint32_t *txsize, uint32_t *tex_cntl_c, Bool trying_solid)
310 if (pPict->pDrawable) {
311 w = pPict->pDrawable->width;
312 h = pPict->pDrawable->height;
324 if (!R128GetDatatypePict2(pPict->format, tex_cntl_c)) return FALSE;
326 bytepp = PICT_FORMAT_BPP(pPict->format) / 8;
329 if (pPict->filter == PictFilterBilinear) {
331 } else if (pPict->filter == PictFilterNearest) {
335 "Bad filter 0x%x\n", pPict->filter));
350 if (pPict->repeat && w == 1 && h == 1) {
352 } else if (pPict->repeat && l2p != l2w) {
361 if ((unit == 1) || (unit == 0 && !pPict->repeat && !trying_solid)) l2h++;
369 if (pPict->transform != 0) {
371 info->state_2d.transform[unit] = pPict->transform;