third_party/cairo/src/drm/cairo-drm-i915-surface.c
static void
i915_device_reset (i915_device_t *device)
{
    if (device->current_source != NULL)
	*device->current_source = 0;
    if (device->current_mask != NULL)
	*device->current_mask = 0;
    if (device->current_clip != NULL)
	*device->current_clip = 0;

    device->current_target = NULL;
    device->current_size = 0;
    device->current_source = NULL;
    device->current_mask = NULL;
    device->current_clip = NULL;
    device->current_texcoords = ~0;
    device->current_blend = 0;
    device->current_n_constants = 0;
    device->current_n_samplers = 0;
    device->current_n_maps = 0;
    device->current_colorbuf = 0;
    device->current_diffuse = 0;
    device->current_program = ~0;
    device->clear_alpha = ~0;

    device->last_source_fragment = ~0;
}
/* XXX improve state tracker/difference and flush state on vertex emission */
XXX improve state tracker/difference and flush state on vertex emission
XXX improve state tracker / difference and flush state on vertex emission
static void
i915_device_reset (i915_device_t *device)
{
    if (device->current_source != NULL)
	*device->current_source = 0;
    if (device->current_mask != NULL)
	*device->current_mask = 0;
    if (device->current_clip != NULL)
	*device->current_clip = 0;
    device->current_target = NULL;
    device->current_size = 0;
    device->current_source = NULL;
    device->current_mask = NULL;
    device->current_clip = NULL;
    device->current_texcoords = ~0;
    device->current_blend = 0;
    device->current_n_constants = 0;
    device->current_n_samplers = 0;
    device->current_n_maps = 0;
    device->current_colorbuf = 0;
    device->current_diffuse = 0;
    device->current_program = ~0;
    device->clear_alpha = ~0;
    device->last_source_fragment = ~0;
}
static void i915_device_reset ( i915_device_t * device ) { if ( device -> current_source != NULL ) * device -> current_source = 0 ; if ( device -> current_mask != NULL ) * device -> current_mask = 0 ; if ( device -> current_clip != NULL ) * device -> current_clip = 0 ; device -> current_target = NULL ; device -> current_size = 0 ; device -> current_source = NULL ; device -> current_mask = NULL ; device -> current_clip = NULL ; device -> current_texcoords = ~ 0 ; device -> current_blend = 0 ; device -> current_n_constants = 0 ; device -> current_n_samplers = 0 ; device -> current_n_maps = 0 ; device -> current_colorbuf = 0 ; device -> current_diffuse = 0 ; device -> current_program = ~ 0 ; device -> clear_alpha = ~ 0 ; device -> last_source_fragment = ~ 0 ; }
XXX improve state tracker/difference and flush state on vertex emission
XXX improve state tracker / difference and flush state on vertex emission