Lines Matching refs:pPict
242 static Bool RADEONCheckTexturePOT(PicturePtr pPict, Bool canTile)
244 int w = pPict->pDrawable->width;
245 int h = pPict->pDrawable->height;
246 unsigned int repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
250 !(repeatType == RepeatNormal && !pPict->transform && canTile))
252 canTile ? "source" : "mask", w, h, pPict->transform != 0));
288 static Bool RADEONSetupSourceTile(PicturePtr pPict,
294 unsigned int repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
302 int w = pPict->pDrawable ? pPict->pDrawable->width : 1;
303 int h = pPict->pDrawable ? pPict->pDrawable->height : 1;
305 if (pPict->transform) {
335 static Bool R100CheckCompositeTexture(PicturePtr pPict,
340 unsigned int repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
344 if (R100TexFormats[i].fmt == pPict->format)
349 (int)pPict->format));
351 if (pPict->pDrawable && !RADEONCheckTexturePOT(pPict, unit == 0))
354 if (pPict->filter != PictFilterNearest &&
355 pPict->filter != PictFilterBilinear)
357 RADEON_FALLBACK(("Unsupported filter 0x%x\n", pPict->filter));
368 if (pPict->transform != 0 && repeatType == RepeatNone && PICT_FORMAT_A(pPict->format) == 0) {
373 if (!radeon_transform_is_affine_or_scaled(pPict->transform))
381 static Bool FUNC_NAME(R100TextureSetup)(PicturePtr pPict, PixmapPtr pPix,
392 if (pPict->pDrawable) {
393 w = pPict->pDrawable->width;
394 h = pPict->pDrawable->height;
395 repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
414 if (R100TexFormats[i].fmt == pPict->format)
435 switch (pPict->filter) {
443 RADEON_FALLBACK(("Bad filter 0x%x\n", pPict->filter));
490 if (pPict->transform != 0) {
492 info->accel_state->transform[unit] = pPict->transform;
753 static Bool R200CheckCompositeTexture(PicturePtr pPict,
758 unsigned int repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
763 if (R200TexFormats[i].fmt == pPict->format)
768 (int)pPict->format));
770 if (pPict->pDrawable && !RADEONCheckTexturePOT(pPict, unit == 0))
773 if (pPict->filter != PictFilterNearest &&
774 pPict->filter != PictFilterBilinear)
775 RADEON_FALLBACK(("Unsupported filter 0x%x\n", pPict->filter));
785 if (pPict->transform != 0 && repeatType == RepeatNone && PICT_FORMAT_A(pPict->format) == 0) {
790 if (!radeon_transform_is_affine_or_scaled(pPict->transform))
798 static Bool FUNC_NAME(R200TextureSetup)(PicturePtr pPict, PixmapPtr pPix,
809 if (pPict->pDrawable) {
810 w = pPict->pDrawable->width;
811 h = pPict->pDrawable->height;
812 repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
831 if (R200TexFormats[i].fmt == pPict->format)
852 switch (pPict->filter) {
862 RADEON_FALLBACK(("Bad filter 0x%x\n", pPict->filter));
906 if (pPict->transform != 0) {
908 info->accel_state->transform[unit] = pPict->transform;
1136 static Bool R300CheckCompositeTexture(PicturePtr pPict,
1145 unsigned int repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
1150 if (R300TexFormats[i].fmt == pPict->format)
1155 (int)pPict->format));
1157 if (pPict->pDrawable && !RADEONCheckTexturePOT(pPict, unit == 0)) {
1162 pPix = RADEONGetDrawablePixmap(pPict->pDrawable);
1169 if (pPict->filter != PictFilterNearest &&
1170 pPict->filter != PictFilterBilinear)
1171 RADEON_FALLBACK(("Unsupported filter 0x%x\n", pPict->filter));
1181 if (pPict->transform != 0 && repeatType == RepeatNone && PICT_FORMAT_A(pPict->format) == 0) {
1186 if (!radeon_transform_is_affine_or_scaled(pPict->transform))
1194 static Bool FUNC_NAME(R300TextureSetup)(PicturePtr pPict, PixmapPtr pPix,
1207 if (pPict->pDrawable) {
1208 w = pPict->pDrawable->width;
1209 h = pPict->pDrawable->height;
1210 repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
1234 if (R300TexFormats[i].fmt == pPict->format)
1311 switch (pPict->filter) {
1319 RADEON_FALLBACK(("Bad filter 0x%x\n", pPict->filter));
1339 if (pPict->transform != 0) {
1341 info->accel_state->transform[unit] = pPict->transform;
1353 OUT_ACCEL_REG(R300_VAP_PVS_VECTOR_DATA_REG, F_TO_DW(xFixedToFloat(pPict->transform->matrix[0][0])));
1354 OUT_ACCEL_REG(R300_VAP_PVS_VECTOR_DATA_REG, F_TO_DW(xFixedToFloat(pPict->transform->matrix[0][1])));
1355 OUT_ACCEL_REG(R300_VAP_PVS_VECTOR_DATA_REG, F_TO_DW(xFixedToFloat(pPict->transform->matrix[0][2])));
1358 OUT_ACCEL_REG(R300_VAP_PVS_VECTOR_DATA_REG, F_TO_DW(xFixedToFloat(pPict->transform->matrix[1][0])));
1359 OUT_ACCEL_REG(R300_VAP_PVS_VECTOR_DATA_REG, F_TO_DW(xFixedToFloat(pPict->transform->matrix[1][1])));
1360 OUT_ACCEL_REG(R300_VAP_PVS_VECTOR_DATA_REG, F_TO_DW(xFixedToFloat(pPict->transform->matrix[1][2])));