summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel_winsys/intel_context.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-08-10 10:02:34 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2007-08-10 10:17:51 +0100
commit938c307e4526298d2703818d5fa848a31b076905 (patch)
treef39efb6a5bb7e6a71483076064f320bcf6738fe9 /src/mesa/drivers/dri/intel_winsys/intel_context.c
parentc12b71ef93ed71a78473568025d2b4d8d8fd2003 (diff)
Add printf handlers, pass pci id and move texlayout code to driver.
Diffstat (limited to 'src/mesa/drivers/dri/intel_winsys/intel_context.c')
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_context.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_context.c b/src/mesa/drivers/dri/intel_winsys/intel_context.c
index 8c61f0cf3c..b88c785fb6 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_context.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_context.c
@@ -243,6 +243,8 @@ intelFlush(GLcontext * ctx)
{
struct intel_context *intel = intel_context(ctx);
+ /* Hmm:
+ */
intel->pipe->flush( intel->pipe, 0 );
}
@@ -421,8 +423,6 @@ intelCreateContext(const __GLcontextModes * mesaVis,
*/
if (!getenv("INTEL_HW")) {
intel->pipe = intel_create_softpipe( intel );
- /* use default softpipe function for surface_alloc() */
- intel->pipe->supported_formats = intel_supported_formats;
}
else {
switch (intel->intelScreen->deviceID) {
@@ -447,28 +447,6 @@ intelCreateContext(const __GLcontextModes * mesaVis,
st_create_context( &intel->ctx, intel->pipe );
-
- /* TODO: Push this down into the pipe driver:
- */
- switch (intel->intelScreen->deviceID) {
- case PCI_CHIP_I945_G:
- case PCI_CHIP_I945_GM:
- case PCI_CHIP_I945_GME:
- case PCI_CHIP_G33_G:
- case PCI_CHIP_Q33_G:
- case PCI_CHIP_Q35_G:
- intel->pipe->mipmap_tree_layout = i945_miptree_layout;
- break;
- case PCI_CHIP_I915_G:
- case PCI_CHIP_I915_GM:
- case PCI_CHIP_I830_M:
- case PCI_CHIP_I855_GM:
- case PCI_CHIP_I865_G:
- intel->pipe->mipmap_tree_layout = i915_miptree_layout;
- default:
- assert(0); /*FIX*/
- }
-
return GL_TRUE;
}