intel: Set the region's tiling to none when attaching a PBO to a region.
authorEric Anholt <eric@anholt.net>
Thu, 28 Jan 2010 18:53:04 +0000 (10:53 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 28 Jan 2010 18:55:25 +0000 (10:55 -0800)
Note that when detaching the PBO from the region and making a new BO
for the region, we don't make it tiled even if the region originally
was.

Fixes piglit pbo-teximage-tiling.

src/mesa/drivers/dri/intel/intel_regions.c

index f415589c5da75de961f98d82d894d997ffe31a0a..301c3df17cf10d17a776a96daaf72da0b6964840 100644 (file)
@@ -442,6 +442,7 @@ intel_region_attach_pbo(struct intel_context *intel,
    region->pbo->region = region;
    dri_bo_reference(buffer);
    region->buffer = buffer;
+   region->tiling = I915_TILING_NONE;
 }