Lines Matching defs:args

414    struct notify_before_flush_cb_args *args = (struct notify_before_flush_cb_args *) _args;
415 struct st_context_iface *st = args->ctx->st;
418 if (args->drawable->stvis.samples > 1 &&
419 (args->reason == __DRI2_THROTTLE_SWAPBUFFER ||
420 args->reason == __DRI2_THROTTLE_COPYSUBBUFFER)) {
423 args->drawable->textures[ST_ATTACHMENT_BACK_LEFT],
424 args->drawable->msaa_textures[ST_ATTACHMENT_BACK_LEFT]);
426 if (args->reason == __DRI2_THROTTLE_SWAPBUFFER &&
427 args->drawable->msaa_textures[ST_ATTACHMENT_FRONT_LEFT] &&
428 args->drawable->msaa_textures[ST_ATTACHMENT_BACK_LEFT]) {
429 args->swap_msaa_buffers = true;
435 dri_postprocessing(args->ctx, args->drawable, ST_ATTACHMENT_BACK_LEFT);
438 (args->flags & __DRI2_FLUSH_INVALIDATE_ANCILLARY)) {
439 if (args->drawable->textures[ST_ATTACHMENT_DEPTH_STENCIL])
440 pipe->invalidate_resource(pipe, args->drawable->textures[ST_ATTACHMENT_DEPTH_STENCIL]);
441 if (args->drawable->msaa_textures[ST_ATTACHMENT_DEPTH_STENCIL])
442 pipe->invalidate_resource(pipe, args->drawable->msaa_textures[ST_ATTACHMENT_DEPTH_STENCIL]);
445 if (args->ctx->hud) {
446 hud_run(args->ctx->hud, args->ctx->st->cso_context,
447 args->drawable->textures[ST_ATTACHMENT_BACK_LEFT]);
450 pipe->flush_resource(pipe, args->drawable->textures[ST_ATTACHMENT_BACK_LEFT]);
471 struct notify_before_flush_cb_args args = { 0 };
501 args.ctx = ctx;
502 args.drawable = drawable;
503 args.flags = flags;
504 args.reason = reason;
522 st->flush(st, flush_flags, &new_fence, args.ctx ? notify_before_flush_cb : NULL, &args);
532 st->flush(st, flush_flags, NULL, args.ctx ? notify_before_flush_cb : NULL, &args);
543 if (args.swap_msaa_buffers) {