diff options
author | Eric Anholt <[email protected]> | 2013-02-26 11:35:40 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-03-01 11:50:03 -0800 |
commit | e63c959451dcdc42fc23b6b4c0871701abbaf23c (patch) | |
tree | 303af3e8ff6ba2f9c0da5259a7985676763b988f | |
parent | a40ba43d78fe8e6ee145785df54b50dd7c7f929a (diff) |
i965: Add WARN_ONCE for depthstencil workarounds we shouldn't be hitting.
Reviewed-by: Chad Versace <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_blorp.cpp | 3 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_blorp.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_blorp.cpp b/src/mesa/drivers/dri/i965/gen6_blorp.cpp index 3834ae230bf..2b6db82951d 100644 --- a/src/mesa/drivers/dri/i965/gen6_blorp.cpp +++ b/src/mesa/drivers/dri/i965/gen6_blorp.cpp @@ -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; diff --git a/src/mesa/drivers/dri/i965/gen7_blorp.cpp b/src/mesa/drivers/dri/i965/gen7_blorp.cpp index 21caa0afbc6..b6719b73ed8 100644 --- a/src/mesa/drivers/dri/i965/gen7_blorp.cpp +++ b/src/mesa/drivers/dri/i965/gen7_blorp.cpp @@ -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; |