Lines Matching refs:decompress
3604 struct decompress_state *decompress = &ctx->Meta->Decompress; in decompress_texture_image() local
3641 if (decompress->FBO == 0) { in decompress_texture_image()
3642 _mesa_GenFramebuffersEXT(1, &decompress->FBO); in decompress_texture_image()
3643 _mesa_GenRenderbuffersEXT(1, &decompress->RBO); in decompress_texture_image()
3644 _mesa_BindFramebufferEXT(GL_FRAMEBUFFER_EXT, decompress->FBO); in decompress_texture_image()
3645 _mesa_BindRenderbufferEXT(GL_RENDERBUFFER_EXT, decompress->RBO); in decompress_texture_image()
3649 decompress->RBO); in decompress_texture_image()
3652 _mesa_BindFramebufferEXT(GL_FRAMEBUFFER_EXT, decompress->FBO); in decompress_texture_image()
3656 if (width > decompress->Width || height > decompress->Height) { in decompress_texture_image()
3657 _mesa_BindRenderbufferEXT(GL_RENDERBUFFER_EXT, decompress->RBO); in decompress_texture_image()
3660 decompress->Width = width; in decompress_texture_image()
3661 decompress->Height = height; in decompress_texture_image()
3665 if (decompress->ArrayObj == 0) { in decompress_texture_image()
3667 _mesa_GenVertexArrays(1, &decompress->ArrayObj); in decompress_texture_image()
3668 _mesa_BindVertexArray(decompress->ArrayObj); in decompress_texture_image()
3671 _mesa_GenBuffersARB(1, &decompress->VBO); in decompress_texture_image()
3672 _mesa_BindBufferARB(GL_ARRAY_BUFFER_ARB, decompress->VBO); in decompress_texture_image()
3683 _mesa_BindVertexArray(decompress->ArrayObj); in decompress_texture_image()
3684 _mesa_BindBufferARB(GL_ARRAY_BUFFER_ARB, decompress->VBO); in decompress_texture_image()
3687 if (!decompress->Sampler) { in decompress_texture_image()
3688 _mesa_GenSamplers(1, &decompress->Sampler); in decompress_texture_image()
3689 _mesa_BindSampler(ctx->Texture.CurrentUnit, decompress->Sampler); in decompress_texture_image()
3691 _mesa_SamplerParameteri(decompress->Sampler, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in decompress_texture_image()
3692 _mesa_SamplerParameteri(decompress->Sampler, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in decompress_texture_image()
3695 _mesa_SamplerParameteri(decompress->Sampler, GL_TEXTURE_SRGB_DECODE_EXT, in decompress_texture_image()
3700 _mesa_BindSampler(ctx->Texture.CurrentUnit, decompress->Sampler); in decompress_texture_image()