[Mesa-dev] [PATCH 5/6] st/mesa: don't use the mesa wrapper _mesa_align_free

Emil Velikov emil.l.velikov at gmail.com
Fri Mar 6 08:32:54 PST 2015


Upon closer look it seems that TexData is no longer used. Perhaps
we can nuke it ?

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



More information about the mesa-dev mailing list