[Mesa-dev] [RFC PATCH 20/26] i965: sanity check that built miptree wont need immediate rebuild

Chris Forbes chrisf at ijw.co.nz
Sat Dec 29 04:35:33 PST 2012


Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
 src/mesa/drivers/dri/intel/intel_tex.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/drivers/dri/intel/intel_tex.c b/src/mesa/drivers/dri/intel/intel_tex.c
index 6820f98..fdf5812 100644
--- a/src/mesa/drivers/dri/intel/intel_tex.c
+++ b/src/mesa/drivers/dri/intel/intel_tex.c
@@ -107,6 +107,9 @@ intel_alloc_texture_image_buffer(struct gl_context *ctx,
           image->Width, image->Height, image->Depth, intel_image->mt);
    }
 
+   /* Make sure that what we just generated actually works */
+   assert(intel_miptree_match_image(intel_texobj->mt, image));
+
    return true;
 }
 
-- 
1.8.0.3



More information about the mesa-dev mailing list