[Mesa-dev] [PATCH 5/6] st/mesa: don't use the mesa wrapper _mesa_align_free
Ilia Mirkin
imirkin at alum.mit.edu
Fri Mar 6 08:47:59 PST 2015
On Fri, Mar 6, 2015 at 11:32 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> Upon closer look it seems that TexData is no longer used. Perhaps
> we can nuke it ?
http://patchwork.freedesktop.org/patch/43969/
>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
> src/mesa/state_tracker/st_cb_texture.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
> index a8b19a1..8f3060d 100644
> --- a/src/mesa/state_tracker/st_cb_texture.c
> +++ b/src/mesa/state_tracker/st_cb_texture.c
> @@ -26,6 +26,8 @@
> **************************************************************************/
>
> #include <stdio.h>
> +#include "c11_stdlib.h"
> +
> #include "main/bufferobj.h"
> #include "main/enums.h"
> #include "main/fbobject.h"
> @@ -178,7 +180,7 @@ st_FreeTextureImageBuffer(struct gl_context *ctx,
> pipe_resource_reference(&stImage->pt, NULL);
> }
>
> - _mesa_align_free(stImage->TexData);
> + aligned_free(stImage->TexData);
> stImage->TexData = NULL;
>
> free(stImage->transfer);
> @@ -1534,7 +1536,7 @@ copy_image_data_to_texture(struct st_context *st,
> stImage->TexData,
> srcRowStride,
> srcSliceStride);
> - _mesa_align_free(stImage->TexData);
> + aligned_free(stImage->TexData);
> stImage->TexData = NULL;
> }
>
> --
> 2.1.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list