• Home
  • Raw
  • Download

Lines Matching refs:swr

611    const unsigned width = align(res->swr.width, res->swr.halign);  in swr_displaytarget_layout()
612 const unsigned height = align(res->swr.height, res->swr.valign); in swr_displaytarget_layout()
628 res->swr.xpBaseAddress = (gfxptr_t)map; in swr_displaytarget_layout()
700 res->swr.width = pt->width0; in swr_texture_layout()
701 res->swr.height = pt->height0; in swr_texture_layout()
702 res->swr.type = swr_convert_target_type(pt->target); in swr_texture_layout()
703 res->swr.tileMode = SWR_TILE_NONE; in swr_texture_layout()
704 res->swr.format = mesa_to_swr_format(fmt); in swr_texture_layout()
705 res->swr.numSamples = std::max(1u, pt->nr_samples); in swr_texture_layout()
708 res->swr.halign = KNOB_MACROTILE_X_DIM; in swr_texture_layout()
709 res->swr.valign = KNOB_MACROTILE_Y_DIM; in swr_texture_layout()
714 res->swr.numSamples = screen->msaa_max_count; in swr_texture_layout()
716 res->swr.numSamples); in swr_texture_layout()
719 res->swr.halign = 1; in swr_texture_layout()
720 res->swr.valign = 1; in swr_texture_layout()
723 unsigned halign = res->swr.halign * util_format_get_blockwidth(fmt); in swr_texture_layout()
728 res->swr.pitch = util_format_get_blocksize(fmt); in swr_texture_layout()
729 res->swr.qpitch = util_format_get_nblocksx(fmt, width); in swr_texture_layout()
738 unsigned valign = res->swr.valign * util_format_get_blockheight(fmt); in swr_texture_layout()
745 res->swr.pitch = util_format_get_stride(fmt, width); in swr_texture_layout()
760 res->swr.qpitch = util_format_get_nblocksy(fmt, height); in swr_texture_layout()
764 res->swr.depth = pt->depth0; in swr_texture_layout()
766 res->swr.depth = pt->array_size; in swr_texture_layout()
769 if (res->swr.format == (SWR_FORMAT)-1) { in swr_texture_layout()
773 case 1: res->swr.format = R8_UINT; break; in swr_texture_layout()
774 case 2: res->swr.format = R16_UINT; break; in swr_texture_layout()
775 case 4: res->swr.format = R32_UINT; break; in swr_texture_layout()
778 res->swr.format = BC4_UNORM; in swr_texture_layout()
780 res->swr.format = R32G32_UINT; in swr_texture_layout()
784 res->swr.format = BC5_UNORM; in swr_texture_layout()
786 res->swr.format = R32G32B32A32_UINT; in swr_texture_layout()
793 ComputeSurfaceOffset<false>(0, 0, 0, 0, 0, level, &res->swr); in swr_texture_layout()
796 size_t total_size = (uint64_t)res->swr.depth * res->swr.qpitch * in swr_texture_layout()
797 res->swr.pitch * res->swr.numSamples; in swr_texture_layout()
804 res->swr.xpBaseAddress = (gfxptr_t)AlignedMalloc(total_size, 64); in swr_texture_layout()
805 if (!res->swr.xpBaseAddress) in swr_texture_layout()
809 res->secondary = res->swr; in swr_texture_layout()
811 res->secondary.pitch = res->swr.pitch / util_format_get_blocksize(fmt); in swr_texture_layout()
823 AlignedFree((void *)res->swr.xpBaseAddress); in swr_texture_layout()
885 msaa_res->swr.xpAuxBaseAddress = (gfxptr_t)&swr_resource(alt)->swr; in swr_create_resolve_resource()
958 if (spr->swr.numSamples > 1) { in swr_resource_destroy()
961 swr_fence_work_free(screen->flush_fence, (void*)(alt->swr.xpBaseAddress), true); in swr_resource_destroy()
964 swr_fence_work_free(screen->flush_fence, (void*)(spr->swr.xpBaseAddress), true); in swr_resource_destroy()
970 if (spr->swr.numSamples > 1) { in swr_resource_destroy()
973 swr_fence_work_free(screen->flush_fence, (void*)(alt->swr.xpBaseAddress), true); in swr_resource_destroy()
976 swr_fence_work_free(screen->flush_fence, (void*)(spr->swr.xpBaseAddress), true); in swr_resource_destroy()
1012 if (pipe && spr->swr.numSamples > 1) { in swr_flush_frontbuffer()
1016 SWR_SURFACE_STATE *resolve = &swr_resource(resolve_target)->swr; in swr_flush_frontbuffer()