Lines Matching refs:pPict

211 static Bool RADEONCheckTexturePOT(PicturePtr pPict, Bool canTile)
213 int w = pPict->pDrawable->width;
214 int h = pPict->pDrawable->height;
215 unsigned int repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
219 !(repeatType == RepeatNormal && !pPict->transform && canTile))
221 canTile ? "source" : "mask", w, h, pPict->transform != 0));
257 static Bool RADEONSetupSourceTile(PicturePtr pPict,
263 unsigned int repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
271 int w = pPict->pDrawable ? pPict->pDrawable->width : 1;
272 int h = pPict->pDrawable ? pPict->pDrawable->height : 1;
274 if (pPict->transform) {
304 static Bool R100CheckCompositeTexture(PicturePtr pPict,
309 unsigned int repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
313 if (R100TexFormats[i].fmt == pPict->format)
318 (int)pPict->format));
320 if (pPict->pDrawable && !RADEONCheckTexturePOT(pPict, unit == 0))
323 if (pPict->filter != PictFilterNearest &&
324 pPict->filter != PictFilterBilinear)
326 RADEON_FALLBACK(("Unsupported filter 0x%x\n", pPict->filter));
337 if (pPict->transform != 0 && repeatType == RepeatNone && PICT_FORMAT_A(pPict->format) == 0) {
342 if (!radeon_transform_is_affine_or_scaled(pPict->transform))
348 static Bool R100TextureSetup(PicturePtr pPict, PixmapPtr pPix,
358 if (pPict->pDrawable) {
359 w = pPict->pDrawable->width;
360 h = pPict->pDrawable->height;
361 repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
378 if (R100TexFormats[i].fmt == pPict->format)
399 switch (pPict->filter) {
407 RADEON_FALLBACK(("Bad filter 0x%x\n", pPict->filter));
454 if (pPict->transform != 0) {
456 info->accel_state->transform[unit] = pPict->transform;
702 static Bool R200CheckCompositeTexture(PicturePtr pPict,
707 unsigned int repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
712 if (R200TexFormats[i].fmt == pPict->format)
717 (int)pPict->format));
719 if (pPict->pDrawable && !RADEONCheckTexturePOT(pPict, unit == 0))
722 if (pPict->filter != PictFilterNearest &&
723 pPict->filter != PictFilterBilinear)
724 RADEON_FALLBACK(("Unsupported filter 0x%x\n", pPict->filter));
734 if (pPict->transform != 0 && repeatType == RepeatNone && PICT_FORMAT_A(pPict->format) == 0) {
739 if (!radeon_transform_is_affine_or_scaled(pPict->transform))
745 static Bool R200TextureSetup(PicturePtr pPict, PixmapPtr pPix,
755 if (pPict->pDrawable) {
756 w = pPict->pDrawable->width;
757 h = pPict->pDrawable->height;
758 repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
776 if (R200TexFormats[i].fmt == pPict->format)
797 switch (pPict->filter) {
807 RADEON_FALLBACK(("Bad filter 0x%x\n", pPict->filter));
851 if (pPict->transform != 0) {
853 info->accel_state->transform[unit] = pPict->transform;
1074 static Bool R300CheckCompositeTexture(PicturePtr pPict,
1080 unsigned int repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
1085 if (R300TexFormats[i].fmt == pPict->format)
1090 (int)pPict->format));
1092 if (pPict->pDrawable && !RADEONCheckTexturePOT(pPict, unit == 0)) {
1097 pPix = RADEONGetDrawablePixmap(pPict->pDrawable);
1104 if (pPict->filter != PictFilterNearest &&
1105 pPict->filter != PictFilterBilinear)
1106 RADEON_FALLBACK(("Unsupported filter 0x%x\n", pPict->filter));
1116 if (pPict->transform != 0 && repeatType == RepeatNone && PICT_FORMAT_A(pPict->format) == 0) {
1121 if (!radeon_transform_is_affine_or_scaled(pPict->transform))
1127 static Bool R300TextureSetup(PicturePtr pPict, PixmapPtr pPix,
1139 if (pPict->pDrawable) {
1140 w = pPict->pDrawable->width;
1141 h = pPict->pDrawable->height;
1142 repeatType = pPict->repeat ? pPict->repeatType : RepeatNone;
1164 if (R300TexFormats[i].fmt == pPict->format)
1241 switch (pPict->filter) {
1249 RADEON_FALLBACK(("Bad filter 0x%x\n", pPict->filter));
1269 if (pPict->transform != 0) {
1271 info->accel_state->transform[unit] = pPict->transform;
1283 OUT_RING_REG(R300_VAP_PVS_VECTOR_DATA_REG, F_TO_DW(xFixedToFloat(pPict->transform->matrix[0][0])));
1284 OUT_RING_REG(R300_VAP_PVS_VECTOR_DATA_REG, F_TO_DW(xFixedToFloat(pPict->transform->matrix[0][1])));
1285 OUT_RING_REG(R300_VAP_PVS_VECTOR_DATA_REG, F_TO_DW(xFixedToFloat(pPict->transform->matrix[0][2])));
1288 OUT_RING_REG(R300_VAP_PVS_VECTOR_DATA_REG, F_TO_DW(xFixedToFloat(pPict->transform->matrix[1][0])));
1289 OUT_RING_REG(R300_VAP_PVS_VECTOR_DATA_REG, F_TO_DW(xFixedToFloat(pPict->transform->matrix[1][1])));
1290 OUT_RING_REG(R300_VAP_PVS_VECTOR_DATA_REG, F_TO_DW(xFixedToFloat(pPict->transform->matrix[1][2])));