move intel_supported_formats() into intel_context.c
authorBrian <brian.paul@tungstengraphics.com>
Fri, 10 Aug 2007 16:09:12 +0000 (10:09 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 10 Aug 2007 16:09:12 +0000 (10:09 -0600)
src/mesa/drivers/dri/intel_winsys/intel_context.c

index d418796d3c5d404ee5777a26799a153a67bb846e..8c61f0cf3c4f3822250ece86969972bd0fd4e60d 100644 (file)
 #include "intel_batchbuffer.h"
 #include "intel_blit.h"
 #include "intel_tex_layout.h"
-#include "intel_surface.h"
 
 #include "state_tracker/st_public.h"
 #include "state_tracker/st_context.h"
+#include "pipe/p_defines.h"
 
 #include "drirenderbuffer.h"
 #include "vblank.h"
@@ -309,6 +309,23 @@ intelInitDriverFunctions(struct dd_function_table *functions)
 
 
 
+/**
+ * Return list of surface formats supported by this driver.
+ */
+static const GLuint *
+intel_supported_formats(struct pipe_context *pipe, GLuint *numFormats)
+{
+   static const GLuint formats[] = {
+      PIPE_FORMAT_U_A8_R8_G8_B8,
+      PIPE_FORMAT_U_R5_G6_B5,
+      PIPE_FORMAT_S8_Z24,
+   };
+
+   *numFormats = sizeof(formats) / sizeof(formats[0]);
+   return formats;
+}
+
+
 GLboolean
 intelCreateContext(const __GLcontextModes * mesaVis,
                    __DRIcontextPrivate * driContextPriv,