Mesa (master): intel: Set the region' s tiling to none when attaching a PBO to a region.
Eric Anholt
anholt at kemper.freedesktop.org
Thu Jan 28 18:55:07 UTC 2010
Module: Mesa
Branch: master
Commit: f20e83210e81a33712f52eaa8d944d116b56b46c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f20e83210e81a33712f52eaa8d944d116b56b46c
Author: Eric Anholt <eric at anholt.net>
Date: Thu Jan 28 10:53:04 2010 -0800
intel: Set the region's tiling to none when attaching a PBO to a region.
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 | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_regions.c b/src/mesa/drivers/dri/intel/intel_regions.c
index f415589..301c3df 100644
--- a/src/mesa/drivers/dri/intel/intel_regions.c
+++ b/src/mesa/drivers/dri/intel/intel_regions.c
@@ -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;
}
More information about the mesa-commit
mailing list