Module: Mesa
Branch: mesa_7_4_branch
Commit: 46059378433970a5557bd667e93b3d61b14caa5a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=46059378433970a5557bd667e93b3d61b14caa5a

Author: Ian Romanick <[email protected]>
Date:   Tue Apr  7 11:23:10 2009 -0700

intel / DRI2: Accept fake front-buffer from loader

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 <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
(cherry picked from commit 6a6e478e5555714226c6f15c63c393f5c0d74de4)

---

 src/mesa/drivers/dri/intel/intel_context.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_context.c 
b/src/mesa/drivers/dri/intel/intel_context.c
index 5f72761..f391da9 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -265,6 +265,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";

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to