Now that we track the global name in struct intel_region, we can just
look it up there.

Signed-off-by: Kristian Høgsberg <k...@bitplanet.net>
---
 src/mesa/drivers/dri/intel/intel_context.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_context.c 
b/src/mesa/drivers/dri/intel/intel_context.c
index e9315a5..f62f75c 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -324,11 +324,8 @@ intel_update_renderbuffers(__DRIcontext *context, 
__DRIdrawable *drawable)
        if (rb == NULL)
          continue;
 
-       if (rb->region) {
-         dri_bo_flink(rb->region->buffer, &name);
-         if (name == buffers[i].name)
+       if (rb->region && rb->region->name == buffers[i].name)
             continue;
-       }
 
        if (INTEL_DEBUG & DEBUG_DRI)
          fprintf(stderr,
@@ -360,11 +357,8 @@ intel_update_renderbuffers(__DRIcontext *context, 
__DRIdrawable *drawable)
          if (rb != NULL) {
             struct intel_region *stencil_region = NULL;
 
-            if (rb->region) {
-               dri_bo_flink(rb->region->buffer, &name);
-               if (name == buffers[i].name)
+            if (rb->region && rb->region->name == buffers[i].name)
                   continue;
-            }
 
             intel_region_reference(&stencil_region, region);
             intel_renderbuffer_set_region(rb, stencil_region);
-- 
1.6.5.rc2


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to