r300g: cleanup includes
authorMarek Olšák <maraeo@gmail.com>
Sun, 20 Jun 2010 01:33:50 +0000 (03:33 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 20 Jun 2010 01:59:31 +0000 (03:59 +0200)
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_texture.h

index de65c61e97c0541978b20f8d68a47780ad9c2bb1..772bbdd2a660474f4e673c19376e8aea72706706 100644 (file)
  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  * USE OR OTHER DEALINGS IN THE SOFTWARE. */
 
-#include "pipe/p_screen.h"
-
-#include "util/u_format.h"
-#include "util/u_format_s3tc.h"
-#include "util/u_math.h"
-#include "util/u_memory.h"
+/* Always include headers in the reverse order!! ~ M. */
+#include "r300_texture.h"
 
 #include "r300_context.h"
 #include "r300_reg.h"
-#include "r300_texture.h"
 #include "r300_transfer.h"
 #include "r300_screen.h"
 #include "r300_winsys.h"
 
+#include "util/u_format.h"
+#include "util/u_format_s3tc.h"
+#include "util/u_math.h"
+#include "util/u_memory.h"
+
+#include "pipe/p_screen.h"
+#include "state_tracker/drm_api.h"
+
 enum r300_dim {
     DIM_WIDTH  = 0,
     DIM_HEIGHT = 1
index ff640c56eedb8b71428ce626a29419dd1e6d8ca6..99e7694254e071d5daac13e92545c1a33711e6e4 100644 (file)
 #ifndef R300_TEXTURE_H
 #define R300_TEXTURE_H
 
-#include "util/u_format.h"
+#include "pipe/p_format.h"
 
+struct pipe_screen;
+struct pipe_resource;
+struct winsys_handle;
 struct r300_texture;
 struct r300_screen;