Lines Matching refs:stuff

80     if (rep.majorVersion > stuff->majorVersion ||
81 (rep.majorVersion == stuff->majorVersion &&
82 rep.minorVersion > stuff->minorVersion)) {
83 rep.majorVersion = stuff->majorVersion;
84 rep.minorVersion = stuff->minorVersion;
134 status = dixLookupDrawable(&drawable, stuff->drawable, client, 0, DixGetAttrAccess);
138 if (stuff->provider == None)
143 VERIFY_RR_PROVIDER(stuff->provider, provider, DixReadAccess);
171 LEGAL_NEW_RESOURCE(stuff->pixmap, client);
172 rc = dixLookupDrawable(&drawable, stuff->drawable, client, M_ANY, DixGetAttrAccess);
174 client->errorValue = stuff->drawable;
178 if (!stuff->width || !stuff->height) {
183 if (stuff->width > 32767 || stuff->height > 32767)
186 if (stuff->depth != 1) {
190 if (depth->depth == stuff->depth)
193 client->errorValue = stuff->depth;
203 stride = stuff->stride;
206 stuff->width, stuff->height,
208 stuff->depth, stuff->bpp,
214 pixmap->drawable.id = stuff->pixmap;
217 rc = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pixmap, RT_PIXMAP,
224 if (!AddResource(stuff->pixmap, RT_PIXMAP, (void *) pixmap))
245 rc = dixLookupResourceByType((void **) &pixmap, stuff->pixmap, RT_PIXMAP,
248 client->errorValue = stuff->pixmap;
289 LEGAL_NEW_RESOURCE(stuff->fence, client);
291 status = dixLookupDrawable(&drawable, stuff->drawable, client, M_ANY, DixGetAttrAccess);
299 status = SyncCreateFenceFromFD(client, drawable, stuff->fence,
300 fd, stuff->initially_triggered);
322 status = dixLookupDrawable(&drawable, stuff->drawable, client, M_ANY, DixGetAttrAccess);
325 status = SyncVerifyFence(&fence, stuff->fence, client, DixWriteAccess);
364 status = dixLookupWindow(&window, stuff->window, client, DixGetAttrAccess);
370 stuff->depth, stuff->bpp,
412 SetReqFds(client, stuff->num_buffers);
414 LEGAL_NEW_RESOURCE(stuff->pixmap, client);
415 rc = dixLookupWindow(&window, stuff->window, client, DixGetAttrAccess);
417 client->errorValue = stuff->window;
422 if (!stuff->width || !stuff->height || !stuff->bpp || !stuff->depth) {
427 if (stuff->width > 32767 || stuff->height > 32767)
430 if (stuff->depth != 1) {
434 if (depth->depth == stuff->depth)
437 client->errorValue = stuff->depth;
442 if (!stuff->num_buffers || stuff->num_buffers > 4) {
443 client->errorValue = stuff->num_buffers;
447 for (i = 0; i < stuff->num_buffers; i++) {
456 strides[0] = stuff->stride0;
457 strides[1] = stuff->stride1;
458 strides[2] = stuff->stride2;
459 strides[3] = stuff->stride3;
460 offsets[0] = stuff->offset0;
461 offsets[1] = stuff->offset1;
462 offsets[2] = stuff->offset2;
463 offsets[3] = stuff->offset3;
466 stuff->num_buffers, fds,
467 stuff->width, stuff->height,
469 stuff->depth, stuff->bpp,
470 stuff->modifier);
472 for (i = 0; i < stuff->num_buffers; i++)
478 pixmap->drawable.id = stuff->pixmap;
481 rc = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pixmap, RT_PIXMAP,
488 if (!AddResource(stuff->pixmap, RT_PIXMAP, (void *) pixmap))
511 rc = dixLookupResourceByType((void **) &pixmap, stuff->pixmap, RT_PIXMAP,
514 client->errorValue = stuff->pixmap;
575 if (stuff->data >= DRI3NumberRequests || !proc_dri3_vector[stuff->data])
577 return (*proc_dri3_vector[stuff->data]) (client);
586 swaps(&stuff->length);
587 swapl(&stuff->majorVersion);
588 swapl(&stuff->minorVersion);
589 return (*proc_dri3_vector[stuff->dri3ReqType]) (client);
598 swaps(&stuff->length);
599 swapl(&stuff->drawable);
600 swapl(&stuff->provider);
601 return (*proc_dri3_vector[stuff->dri3ReqType]) (client);
610 swaps(&stuff->length);
611 swapl(&stuff->pixmap);
612 swapl(&stuff->drawable);
613 swapl(&stuff->size);
614 swaps(&stuff->width);
615 swaps(&stuff->height);
616 swaps(&stuff->stride);
617 return (*proc_dri3_vector[stuff->dri3ReqType]) (client);
626 swaps(&stuff->length);
627 swapl(&stuff->pixmap);
628 return (*proc_dri3_vector[stuff->dri3ReqType]) (client);
637 swaps(&stuff->length);
638 swapl(&stuff->drawable);
639 swapl(&stuff->fence);
640 return (*proc_dri3_vector[stuff->dri3ReqType]) (client);
649 swaps(&stuff->length);
650 swapl(&stuff->drawable);
651 swapl(&stuff->fence);
652 return (*proc_dri3_vector[stuff->dri3ReqType]) (client);
661 swaps(&stuff->length);
662 swapl(&stuff->window);
663 return (*proc_dri3_vector[stuff->dri3ReqType]) (client);
672 swaps(&stuff->length);
673 swapl(&stuff->pixmap);
674 swapl(&stuff->window);
675 swaps(&stuff->width);
676 swaps(&stuff->height);
677 swapl(&stuff->stride0);
678 swapl(&stuff->offset0);
679 swapl(&stuff->stride1);
680 swapl(&stuff->offset1);
681 swapl(&stuff->stride2);
682 swapl(&stuff->offset2);
683 swapl(&stuff->stride3);
684 swapl(&stuff->offset3);
685 swapll(&stuff->modifier);
686 return (*proc_dri3_vector[stuff->dri3ReqType]) (client);
695 swaps(&stuff->length);
696 swapl(&stuff->pixmap);
697 return (*proc_dri3_vector[stuff->dri3ReqType]) (client);
718 if (stuff->data >= DRI3NumberRequests || !sproc_dri3_vector[stuff->data])
720 return (*sproc_dri3_vector[stuff->data]) (client);