Lines Matching refs:blit
62 struct blit_state *blit, in setup_glsl_blit_framebuffer() argument
74 _mesa_meta_setup_vertex_objects(ctx, &blit->VAO, &blit->buf_obj, true, in setup_glsl_blit_framebuffer()
78 do_depth ? &blit->shaders_with_depth in setup_glsl_blit_framebuffer()
79 : &blit->shaders_without_depth); in setup_glsl_blit_framebuffer()
100 struct blit_state *blit = &ctx->Meta->Blit; in blitframebuffer_texture() local
184 setup_glsl_blit_framebuffer(ctx, blit, drawFb, rb, target, do_depth); in blitframebuffer_texture()
280 _mesa_buffer_sub_data(ctx, blit->buf_obj, 0, sizeof(verts), verts); in blitframebuffer_texture()
298 struct fb_tex_blit_state *blit) in _mesa_meta_fb_tex_blit_begin() argument
308 blit->samp_obj_save = NULL; in _mesa_meta_fb_tex_blit_begin()
309 _mesa_reference_sampler_object(ctx, &blit->samp_obj_save, in _mesa_meta_fb_tex_blit_begin()
311 blit->temp_tex_obj = NULL; in _mesa_meta_fb_tex_blit_begin()
316 struct fb_tex_blit_state *blit) in _mesa_meta_fb_tex_blit_end() argument
322 assert(blit->temp_tex_obj == NULL || blit->temp_tex_obj == texObj); in _mesa_meta_fb_tex_blit_end()
328 if (blit->temp_tex_obj == NULL) { in _mesa_meta_fb_tex_blit_end()
332 if (blit->baseLevelSave != texObj->BaseLevel) in _mesa_meta_fb_tex_blit_end()
334 &blit->baseLevelSave, false); in _mesa_meta_fb_tex_blit_end()
336 if (blit->maxLevelSave != texObj->MaxLevel) in _mesa_meta_fb_tex_blit_end()
338 &blit->maxLevelSave, false); in _mesa_meta_fb_tex_blit_end()
341 if (texObj->StencilSampling != blit->stencilSamplingSave) { in _mesa_meta_fb_tex_blit_end()
345 const GLint param = blit->stencilSamplingSave ? in _mesa_meta_fb_tex_blit_end()
353 _mesa_bind_sampler(ctx, ctx->Texture.CurrentUnit, blit->samp_obj_save); in _mesa_meta_fb_tex_blit_end()
354 _mesa_reference_sampler_object(ctx, &blit->samp_obj_save, NULL); in _mesa_meta_fb_tex_blit_end()
355 _mesa_reference_sampler_object(ctx, &blit->samp_obj, NULL); in _mesa_meta_fb_tex_blit_end()
356 _mesa_delete_nameless_texture(ctx, blit->temp_tex_obj); in _mesa_meta_fb_tex_blit_end()
505 _mesa_meta_glsl_blit_cleanup(struct gl_context *ctx, struct blit_state *blit) in _mesa_meta_glsl_blit_cleanup() argument
507 if (blit->VAO) { in _mesa_meta_glsl_blit_cleanup()
508 _mesa_DeleteVertexArrays(1, &blit->VAO); in _mesa_meta_glsl_blit_cleanup()
509 blit->VAO = 0; in _mesa_meta_glsl_blit_cleanup()
510 _mesa_reference_buffer_object(ctx, &blit->buf_obj, NULL); in _mesa_meta_glsl_blit_cleanup()
513 _mesa_meta_blit_shader_table_cleanup(ctx, &blit->shaders_with_depth); in _mesa_meta_glsl_blit_cleanup()
514 _mesa_meta_blit_shader_table_cleanup(ctx, &blit->shaders_without_depth); in _mesa_meta_glsl_blit_cleanup()
516 if (blit->depthTex.tex_obj != NULL) { in _mesa_meta_glsl_blit_cleanup()
517 _mesa_delete_nameless_texture(ctx, blit->depthTex.tex_obj); in _mesa_meta_glsl_blit_cleanup()
518 blit->depthTex.tex_obj = NULL; in _mesa_meta_glsl_blit_cleanup()