i965: Add WARN_ONCE for depthstencil workarounds we shouldn't be hitting.
authorEric Anholt <eric@anholt.net>
Tue, 26 Feb 2013 19:35:40 +0000 (11:35 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 1 Mar 2013 19:50:03 +0000 (11:50 -0800)
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/gen6_blorp.cpp
src/mesa/drivers/dri/i965/gen7_blorp.cpp

index 3834ae230bfeb2b0e87d1b6aabd54aa300406f83..2b6db82951d3f6549ad24a67381792d8cf2dd18c 100644 (file)
@@ -855,6 +855,9 @@ gen6_blorp_emit_depth_stencil_config(struct brw_context *brw,
        * tile_x and tile_y to 0.  This is a temporary workaround until we come
        * up with a better solution.
        */
+      WARN_ONCE((tile_x & 7) || (tile_y & 7),
+                "Depth/stencil buffer needs alignment to 8-pixel boundaries.\n"
+                "Truncating offset, bad rendering may occur.\n");
       tile_x &= ~7;
       tile_y &= ~7;
 
index 21caa0afbc61411328e4f4bdf8a8480117efa51a..b6719b73ed8ea5a2c212cf755c3082eb5bf7c003 100644 (file)
@@ -612,6 +612,9 @@ gen7_blorp_emit_depth_stencil_config(struct brw_context *brw,
        * tile_x and tile_y to 0.  This is a temporary workaround until we come
        * up with a better solution.
        */
+      WARN_ONCE((tile_x & 7) || (tile_y & 7),
+                "Depth/stencil buffer needs alignment to 8-pixel boundaries.\n"
+                "Truncating offset, bad rendering may occur.\n");
       tile_x &= ~7;
       tile_y &= ~7;