Lines Matching refs:pDepth
135 DepthPtr pDepth; in visualDepth() local
138 pDepth = &pScreen->allowedDepths[d]; in visualDepth()
139 for (v = 0; v < pDepth->numVids; v++) in visualDepth()
140 if (pDepth->vids[v] == pVisual->vid) in visualDepth()
141 return pDepth->depth; in visualDepth()
180 DepthPtr pDepth; in PictureCreateDefaultFormats() local
261 pDepth = &pScreen->allowedDepths[d]; in PictureCreateDefaultFormats()
262 bpp = BitsPerPixel(pDepth->depth); in PictureCreateDefaultFormats()
267 if (pDepth->depth >= 12) { in PictureCreateDefaultFormats()
268 addFormat(formats, &nformats, PICT_x4r4g4b4, pDepth->depth); in PictureCreateDefaultFormats()
269 addFormat(formats, &nformats, PICT_x4b4g4r4, pDepth->depth); in PictureCreateDefaultFormats()
272 if (pDepth->depth >= 15) { in PictureCreateDefaultFormats()
273 addFormat(formats, &nformats, PICT_x1r5g5b5, pDepth->depth); in PictureCreateDefaultFormats()
274 addFormat(formats, &nformats, PICT_x1b5g5r5, pDepth->depth); in PictureCreateDefaultFormats()
277 if (pDepth->depth >= 16) { in PictureCreateDefaultFormats()
278 addFormat(formats, &nformats, PICT_a1r5g5b5, pDepth->depth); in PictureCreateDefaultFormats()
279 addFormat(formats, &nformats, PICT_a1b5g5r5, pDepth->depth); in PictureCreateDefaultFormats()
280 addFormat(formats, &nformats, PICT_r5g6b5, pDepth->depth); in PictureCreateDefaultFormats()
281 addFormat(formats, &nformats, PICT_b5g6r5, pDepth->depth); in PictureCreateDefaultFormats()
282 addFormat(formats, &nformats, PICT_a4r4g4b4, pDepth->depth); in PictureCreateDefaultFormats()
283 addFormat(formats, &nformats, PICT_a4b4g4r4, pDepth->depth); in PictureCreateDefaultFormats()
287 if (pDepth->depth >= 24) { in PictureCreateDefaultFormats()
288 addFormat(formats, &nformats, PICT_x8r8g8b8, pDepth->depth); in PictureCreateDefaultFormats()
289 addFormat(formats, &nformats, PICT_x8b8g8r8, pDepth->depth); in PictureCreateDefaultFormats()
291 if (pDepth->depth >= 30) { in PictureCreateDefaultFormats()
292 addFormat(formats, &nformats, PICT_a2r10g10b10, pDepth->depth); in PictureCreateDefaultFormats()
293 addFormat(formats, &nformats, PICT_x2r10g10b10, pDepth->depth); in PictureCreateDefaultFormats()
294 addFormat(formats, &nformats, PICT_a2b10g10r10, pDepth->depth); in PictureCreateDefaultFormats()
295 addFormat(formats, &nformats, PICT_x2b10g10r10, pDepth->depth); in PictureCreateDefaultFormats()