intel / DRI2: Accept fake front-buffer from loader
authorIan Romanick <idr@freedesktop.org>
Tue, 7 Apr 2009 18:23:10 +0000 (11:23 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 9 Apr 2009 21:18:14 +0000 (14:18 -0700)
Handle the loader returning a fake front-buffer.  Since the driver
never specifically requests a fake front-buffer, the driver assumes
that it will never receive both a fake and a real front-buffer.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
src/mesa/drivers/dri/intel/intel_context.c

index 797bfa8c4b1d4858d9d10daccdb5963abf76cd9c..56d03c1e78458f6766e1d1329fcfe33272b38f1f 100644 (file)
@@ -235,6 +235,11 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable)
           region_name = "dri2 front buffer";
           break;
 
+       case __DRI_BUFFER_FAKE_FRONT_LEFT:
+          rb = intel_fb->color_rb[0];
+          region_name = "dri2 fake front buffer";
+          break;
+
        case __DRI_BUFFER_BACK_LEFT:
           rb = intel_fb->color_rb[1];
           region_name = "dri2 back buffer";