summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-08-10 10:20:35 +0100
committerKeith Whitwell <[email protected]>2007-08-10 10:20:35 +0100
commit07fd9ad7bbd6de8d2beaa5202daecb7dac861899 (patch)
treec5456b8745eaa8c4d3f9edc444e1c61fbb5290cd /src
parentfa6815f0566339eb0879842369d3aea25dc6233f (diff)
Fix merge issue
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_context.c15
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_pipe_softpipe.c20
2 files changed, 19 insertions, 16 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_context.c b/src/mesa/drivers/dri/intel_winsys/intel_context.c
index b88c785fb61..fea6995b075 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_context.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_context.c
@@ -311,21 +311,6 @@ 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
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_pipe_softpipe.c b/src/mesa/drivers/dri/intel_winsys/intel_pipe_softpipe.c
index fdd7acf7475..06db5c9f432 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_pipe_softpipe.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_pipe_softpipe.c
@@ -36,9 +36,9 @@
#include "intel_context.h"
#include "intel_pipe.h"
-#include "intel_surface.h"
#include "pipe/softpipe/sp_winsys.h"
+#include "pipe/p_defines.h"
/* Shouldn't really need this:
*/
@@ -158,6 +158,24 @@ intel_create_buffer(struct softpipe_winsys *sws,
}
+/**
+ * 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;
+}
+
+
+
struct pipe_context *
intel_create_softpipe( struct intel_context *intel )
{