[Mesa-dev] [PATCH] i965: update draw offset after referencing new_mt

Yuanhan Liu yuanhan.liu at linux.intel.com
Thu Apr 26 18:54:54 PDT 2012


Here we created a new miptree thus we should update the draw offset
based on the newly created miptree instead of the old one.

This would fix the two webglc test cases on 965 platforms:
  conformance/limits/gl-max-texture-dimensions.html
  conformance/textures/texture-size.html

NOTE: This is a candidate for stable release branches.

Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>
---
 src/mesa/drivers/dri/intel/intel_fbo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c
index 185602a..000c3db 100644
--- a/src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/src/mesa/drivers/dri/intel/intel_fbo.c
@@ -656,9 +656,9 @@ intel_render_texture(struct gl_context * ctx,
 				    true);
 
       intel_miptree_copy_teximage(intel, intel_image, new_mt);
-      intel_renderbuffer_set_draw_offset(irb);
 
       intel_miptree_reference(&irb->mt, intel_image->mt);
+      intel_renderbuffer_set_draw_offset(irb);
       intel_miptree_release(&new_mt);
    }
 #endif
-- 
1.7.4.4



More information about the mesa-dev mailing list