search for: nouveau_free_texture_image_buffer

Displaying 1 result from an estimated 1 matches for "nouveau_free_texture_image_buffer".

2012 Jul 06
0
[PATCH] dri/nouveau: Add AllocTextureImageBuffer() implementation
...idth, height, depth); + + nouveau_surface_alloc(ctx, s, LINEAR, get_teximage_placement(ti), + ti->TexFormat, width, height); + nti->base.RowStride = s->pitch / s->cpp; + + return GL_TRUE; +} + static void -nouveau_teximage_free(struct gl_context *ctx, struct gl_texture_image *ti) +nouveau_free_texture_image_buffer(struct gl_context *ctx, + struct gl_texture_image *ti) { struct nouveau_teximage *nti = to_nouveau_teximage(ti); nouveau_surface_ref(NULL, &nti->surface); + + if (nti->base.Buffer) { + _mesa_align_free(nti->base.Buffer); + nti->base.Buffer = NULL; + } + + if (nti->ba...