Mesa (master): i965/gen9: Don' t use fast copy blit in case of non power of 2 cpp
Anuj Phogat
aphogat at kemper.freedesktop.org
Tue Jan 5 21:43:55 UTC 2016
Module: Mesa
Branch: master
Commit: 3c8b97a45b824712452b1425ed5cac3b97286439
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c8b97a45b824712452b1425ed5cac3b97286439
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date: Tue Jul 28 10:47:35 2015 -0700
i965/gen9: Don't use fast copy blit in case of non power of 2 cpp
Fast copy blit is currently enabled for use only with Yf/Ys tiling.
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/mesa/drivers/dri/i965/intel_blit.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b/src/mesa/drivers/dri/i965/intel_blit.c
index bd204aa..474a476 100644
--- a/src/mesa/drivers/dri/i965/intel_blit.c
+++ b/src/mesa/drivers/dri/i965/intel_blit.c
@@ -427,8 +427,10 @@ can_fast_copy_blit(struct brw_context *brw,
if ((dst_offset | src_offset) & 63)
return false;
- /* Color depth greater than 128 bits not supported. */
- if (cpp > 16)
+ /* Color depths which are not power of 2 or greater than 128 bits are
+ * not supported.
+ */
+ if (!_mesa_is_pow_two(cpp) || cpp > 16)
return false;
/* For Fast Copy Blits the pitch cannot be a negative number. So, bit 15
More information about the mesa-commit
mailing list