OSDN Git Service

i965: Always set tiling for depth buffer on sandybridge
authorZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 29 Sep 2010 05:59:03 +0000 (13:59 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 29 Sep 2010 06:02:37 +0000 (14:02 +0800)
Sandybridge only support tiling depth buffer, always set tiling bit.

Fix 'fbo_firecube' demo.

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

index 6eeaba7..7a33412 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) |
-               ((region->tiling != I915_TILING_NONE) << 27) |
+               (1 << 27) |
                (BRW_SURFACE_2D << 29));
       OUT_RELOC(region->buffer,
                I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER,