i965: Drop a funny assert about mt pitch.
authorEric Anholt <eric@anholt.net>
Fri, 25 Apr 2014 22:18:14 +0000 (15:18 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 1 May 2014 22:12:27 +0000 (15:12 -0700)
I slipped this in in the region->pitch change from pixels to bytes, but I
don't see any reason for it any more -- the libdrm code doesn't appear to
divide pitch by a cpp.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/intel_screen.c

index 30321242f43982be58d77abd4fa72f582ea8aa19..f3daad0675c1d3e18eab62a078d5b25f9e371ace 100644 (file)
@@ -140,7 +140,6 @@ aub_dump_bmp(struct gl_context *ctx)
            continue;
         }
 
-         assert(irb->mt->pitch % irb->mt->cpp == 0);
          drm_intel_gem_bo_aub_dump_bmp(irb->mt->bo,
                                       irb->draw_x,
                                       irb->draw_y,