Module: Mesa
Branch: mesa_7_7_branch
Commit: 9564a6fa13b712d20003dde0d5f91ec026f4afc9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9564a6fa13b712d20003dde0d5f91ec026f4afc9

Author: Eric Anholt <[email protected]>
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.
(cherry picked from commit f20e83210e81a33712f52eaa8d944d116b56b46c)

---

 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 d13516a..6641cc7 100644
--- a/src/mesa/drivers/dri/intel/intel_regions.c
+++ b/src/mesa/drivers/dri/intel/intel_regions.c
@@ -444,6 +444,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;
 }
 
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to