nvfx: Fix include recursion.
authorVinson Lee <vlee@vmware.com>
Mon, 19 Apr 2010 06:44:24 +0000 (23:44 -0700)
committerVinson Lee <vlee@vmware.com>
Mon, 19 Apr 2010 06:44:24 +0000 (23:44 -0700)
Don't include nvfx_context.h and use a forward reference instead.
nvfx_context.h includes nvfx_screen.h (itself).

src/gallium/drivers/nvfx/nvfx_screen.h

index 127d8919af4fedd2f8700d5494d0ebb04d5c8b3b..5e1c3945aef8cf6a68ad16508335c30a7743c70f 100644 (file)
@@ -4,7 +4,8 @@
 #include "util/u_double_list.h"
 #include "nouveau/nouveau_screen.h"
 #include "nv04_surface_2d.h"
-#include "nvfx_context.h"
+
+struct nvfx_context;
 
 struct nvfx_screen {
        struct nouveau_screen base;