• Home
  • Raw
  • Download

Lines Matching refs:src_res

424                           struct vrend_resource *src_res,  in get_texcoords()  argument
429 bool normalized = (src_res->base.target != PIPE_TEXTURE_RECT || blit_ctx->use_gles) && in get_texcoords()
430 src_res->base.nr_samples < 1; in get_texcoords()
433 out[0] = x1 / (float)u_minify(src_res->base.width0, src_level); in get_texcoords()
434 out[1] = y1 / (float)u_minify(src_res->base.height0, src_level); in get_texcoords()
435 out[2] = x2 / (float)u_minify(src_res->base.width0, src_level); in get_texcoords()
436 out[3] = y2 / (float)u_minify(src_res->base.height0, src_level); in get_texcoords()
462 struct vrend_resource *src_res, in blitter_set_texcoords() argument
470 get_texcoords(blit_ctx, src_res, level, x1, y1, x2, y2, coord); in blitter_set_texcoords()
472 if (src_res->base.target == PIPE_TEXTURE_CUBE || in blitter_set_texcoords()
473 src_res->base.target == PIPE_TEXTURE_CUBE_ARRAY) { in blitter_set_texcoords()
484 switch (src_res->base.target) { in blitter_set_texcoords()
487 float r = layer / (float)u_minify(src_res->base.depth0, in blitter_set_texcoords()
564 static void calc_src_deltas_for_bounds(struct vrend_resource *src_res, in calc_src_deltas_for_bounds() argument
569 int max_x = u_minify(src_res->base.width0, info->src.level) - 1; in calc_src_deltas_for_bounds()
570 int max_y = u_minify(src_res->base.height0, info->src.level) - 1; in calc_src_deltas_for_bounds()
608 struct vrend_resource *src_res, in blitter_set_points() argument
620 calc_src_deltas_for_bounds(src_res, info, &src0_delta, &src1_delta); in blitter_set_points()
640 static void vrend_set_tex_param(struct vrend_resource *src_res, in vrend_set_tex_param() argument
645 vrend_get_format_table_entry_with_emulation(src_res->base.bind, info->src.format); in vrend_set_tex_param()
648 glTexParameteri(src_res->target, GL_TEXTURE_SWIZZLE_R, in vrend_set_tex_param()
650 glTexParameteri(src_res->target, GL_TEXTURE_SWIZZLE_G, in vrend_set_tex_param()
652 glTexParameteri(src_res->target, GL_TEXTURE_SWIZZLE_B, in vrend_set_tex_param()
654 glTexParameteri(src_res->target, GL_TEXTURE_SWIZZLE_A, in vrend_set_tex_param()
660 src_res->base.nr_samples < 1) in vrend_set_tex_param()
661 glTexParameteri(src_res->target, GL_TEXTURE_SRGB_DECODE_EXT, GL_DECODE_EXT); in vrend_set_tex_param()
663 if (src_res->base.nr_samples < 1) { in vrend_set_tex_param()
664 glTexParameteri(src_res->target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in vrend_set_tex_param()
665 glTexParameteri(src_res->target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in vrend_set_tex_param()
666 glTexParameteri(src_res->target, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); in vrend_set_tex_param()
669 glTexParameteri(src_res->target, GL_TEXTURE_BASE_LEVEL, info->src.level); in vrend_set_tex_param()
670 glTexParameteri(src_res->target, GL_TEXTURE_MAX_LEVEL, info->src.level); in vrend_set_tex_param()
672 if (src_res->base.nr_samples < 1) { in vrend_set_tex_param()
675 glTexParameterf(src_res->target, GL_TEXTURE_MAG_FILTER, filter); in vrend_set_tex_param()
676 glTexParameterf(src_res->target, GL_TEXTURE_MIN_FILTER, filter); in vrend_set_tex_param()
696 struct vrend_resource *src_res, in vrend_renderer_blit_gl() argument
713 util_format_description(src_res->base.format); in vrend_renderer_blit_gl()
729 blitter_set_points(blit_ctx, info, src_res, dst_res, &src0, &src1); in vrend_renderer_blit_gl()
735 fs_id = blit_get_frag_tex_writedepth(blit_ctx, src_res->base.target, in vrend_renderer_blit_gl()
736 src_res->base.nr_samples); in vrend_renderer_blit_gl()
738 fs_id = blit_get_frag_tex_col(blit_ctx, src_res->base.target, in vrend_renderer_blit_gl()
739 src_res->base.nr_samples, in vrend_renderer_blit_gl()
756 glBindTexture(src_res->target, blit_views[0]); in vrend_renderer_blit_gl()
757 vrend_set_tex_param(src_res, info, has_texture_srgb_decode); in vrend_renderer_blit_gl()
790 blitter_set_texcoords(blit_ctx, src_res, info->src.level, in vrend_renderer_blit_gl()
804 glBindTexture(src_res->target, 0); in vrend_renderer_blit_gl()