Home | History | Annotate | Download | only in state_tracker

Lines Matching refs:drawpix_cache

398    if (width == st->drawpix_cache.width &&
399 height == st->drawpix_cache.height &&
400 format == st->drawpix_cache.format &&
401 type == st->drawpix_cache.type &&
402 pixels == st->drawpix_cache.user_pointer &&
408 st->drawpix_cache.image) {
409 assert(st->drawpix_cache.texture);
412 if (memcmp(pixels, st->drawpix_cache.image, width * height * bpp) == 0) {
414 pipe_resource_reference(&pt, st->drawpix_cache.texture);
425 st->drawpix_cache.width = 0;
426 st->drawpix_cache.height = 0;
427 st->drawpix_cache.user_pointer = NULL;
428 if (st->drawpix_cache.image) {
429 free(st->drawpix_cache.image);
430 st->drawpix_cache.image = NULL;
432 pipe_resource_reference(&st->drawpix_cache.texture, NULL);
529 st->drawpix_cache.width = width;
530 st->drawpix_cache.height = height;
531 st->drawpix_cache.format = format;
532 st->drawpix_cache.type = type;
533 st->drawpix_cache.user_pointer = pixels;
534 assert(!st->drawpix_cache.image);
535 st->drawpix_cache.image = malloc(width * height * bpp);
536 if (st->drawpix_cache.image) {
537 memcpy(st->drawpix_cache.image, pixels, width * height * bpp);
538 pipe_resource_reference(&st->drawpix_cache.texture, pt);
542 st->drawpix_cache.width = 0;
543 st->drawpix_cache.height = 0;
544 pipe_resource_reference(&st->drawpix_cache.texture, NULL);