Revert "i965: Always set tiling for depth buffer on sandybridge"
authorZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 29 Sep 2010 07:18:37 +0000 (15:18 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 29 Sep 2010 07:18:37 +0000 (15:18 +0800)
This reverts commit 0a1910c26760762eb8d67f68dfd87494ab479e38.

oops, shouldn't apply tiling depth buffer for other chips as well.

src/mesa/drivers/dri/i965/brw_misc_state.c

index 7a334126f2bebcdc8ed872425164ee4020da023e..6eeaba777207d35fd4d96e28ba9537c1eca1ae2c 100644 (file)
@@ -289,7 +289,7 @@ static void emit_depthbuffer(struct brw_context *brw)
       OUT_BATCH(((region->pitch * region->cpp) - 1) |
                (format << 18) |
                (BRW_TILEWALK_YMAJOR << 26) |
-               (1 << 27) |
+               ((region->tiling != I915_TILING_NONE) << 27) |
                (BRW_SURFACE_2D << 29));
       OUT_RELOC(region->buffer,
                I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER,