From 4cf6718725c7cf3bfb728118a8b14f8cf206c701 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 5 Jul 2005 14:13:42 +0000 Subject: The old MESA_PBUFFER_ALLOC() function allocated memory on 512-byte boundaries. Restore that behavior with new _mesa_alloc_texmemory() function. Should fix via_sse_memcpy() problem in found with flightgear. --- src/mesa/main/teximage.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/teximage.h') diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h index 5fb696a950..45c851e5c8 100644 --- a/src/mesa/main/teximage.h +++ b/src/mesa/main/teximage.h @@ -5,9 +5,9 @@ /* * Mesa 3-D graphics library - * Version: 6.1 + * Version: 6.3 * - * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -35,6 +35,13 @@ #include "mtypes.h" +extern void * +_mesa_alloc_texmemory(GLsizei bytes); + +extern void +_mesa_free_texmemory(void *m); + + /** \name Internal functions */ /*@{*/ -- cgit v1.2.3