summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-05-19 21:10:14 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-05-25 14:17:29 -0700
commit2822c8a0780ed57f8174389184740251dc5b0eda (patch)
tree5b3da4a137c001ccf4ffeda035f33e7a92d3f47a
parentc51702bdc81b65396a7945d2cb30e0576e4aa59a (diff)
downloadexternal_mesa3d-2822c8a0780ed57f8174389184740251dc5b0eda.zip
external_mesa3d-2822c8a0780ed57f8174389184740251dc5b0eda.tar.gz
external_mesa3d-2822c8a0780ed57f8174389184740251dc5b0eda.tar.bz2
i965: Make the CopyImage BLT path bail for stencil images.
The BLT can't handle S8 because it's W-tiled (at least without additional funny business, and I'm not sure we care). Disallow it so it falls back to the CPU path, which works. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Chris Forbes <chrisforbes@google.com>
-rw-r--r--src/mesa/drivers/dri/i965/intel_copy_image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_copy_image.c b/src/mesa/drivers/dri/i965/intel_copy_image.c
index ead5b0d..fdc6c8c 100644
--- a/src/mesa/drivers/dri/i965/intel_copy_image.c
+++ b/src/mesa/drivers/dri/i965/intel_copy_image.c
@@ -48,6 +48,9 @@ copy_image_with_blitter(struct brw_context *brw,
if (src_mt->num_samples > 0 || dst_mt->num_samples > 0)
return false;
+ if (src_mt->format == MESA_FORMAT_S_UINT8)
+ return false;
+
/* According to the Ivy Bridge PRM, Vol1 Part4, section 1.2.1.2 (Graphics
* Data Size Limitations):
*