Lines Matching defs:pDepth
135 DepthPtr pDepth;
138 pDepth = &pScreen->allowedDepths[d];
139 for (v = 0; v < pDepth->numVids; v++)
140 if (pDepth->vids[v] == pVisual->vid)
141 return pDepth->depth;
180 DepthPtr pDepth;
257 pDepth = &pScreen->allowedDepths[d];
258 bpp = BitsPerPixel(pDepth->depth);
263 if (pDepth->depth >= 12) {
264 addFormat(formats, &nformats, PICT_x4r4g4b4, pDepth->depth);
265 addFormat(formats, &nformats, PICT_x4b4g4r4, pDepth->depth);
268 if (pDepth->depth >= 15) {
269 addFormat(formats, &nformats, PICT_x1r5g5b5, pDepth->depth);
270 addFormat(formats, &nformats, PICT_x1b5g5r5, pDepth->depth);
273 if (pDepth->depth >= 16) {
274 addFormat(formats, &nformats, PICT_a1r5g5b5, pDepth->depth);
275 addFormat(formats, &nformats, PICT_a1b5g5r5, pDepth->depth);
276 addFormat(formats, &nformats, PICT_r5g6b5, pDepth->depth);
277 addFormat(formats, &nformats, PICT_b5g6r5, pDepth->depth);
278 addFormat(formats, &nformats, PICT_a4r4g4b4, pDepth->depth);
279 addFormat(formats, &nformats, PICT_a4b4g4r4, pDepth->depth);
283 if (pDepth->depth >= 24) {
284 addFormat(formats, &nformats, PICT_x8r8g8b8, pDepth->depth);
285 addFormat(formats, &nformats, PICT_x8b8g8r8, pDepth->depth);
287 if (pDepth->depth >= 30) {
288 addFormat(formats, &nformats, PICT_a2r10g10b10, pDepth->depth);
289 addFormat(formats, &nformats, PICT_x2r10g10b10, pDepth->depth);
290 addFormat(formats, &nformats, PICT_a2b10g10r10, pDepth->depth);
291 addFormat(formats, &nformats, PICT_x2b10g10r10, pDepth->depth);