summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_blit.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-11-30 19:08:51 -0800
committerJason Ekstrand <[email protected]>2016-12-05 14:00:35 -0800
commit06d864921ee6cfd083ac3782d4434d91ec652eea (patch)
tree5ff03a4553f1fad2edce8657277addb541e73fbb /src/mesa/drivers/dri/i965/intel_blit.h
parent6c74e7f492b526f16b6ae59b16eb30df14f793c8 (diff)
i965/copy_image: Re-implement the blitter path with emit_miptree_blit
By using emit_miptree_blit which does chunking, this fixes the blitter path for the case where the image is too tall to blit normally. We also pull it into intel_blit as intel_miptree_copy. This matches the naming of the blorp blit and copy functions brw_blorp_blit and brw_blorp_copy. Reviewed-by: Anuj Phogat <[email protected]> Cc: "13.0" <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_blit.h')
-rw-r--r--src/mesa/drivers/dri/i965/intel_blit.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_blit.h b/src/mesa/drivers/dri/i965/intel_blit.h
index f4ed919b000..6925795656a 100644
--- a/src/mesa/drivers/dri/i965/intel_blit.h
+++ b/src/mesa/drivers/dri/i965/intel_blit.h
@@ -58,6 +58,15 @@ bool intel_miptree_blit(struct brw_context *brw,
uint32_t width, uint32_t height,
GLenum logicop);
+bool intel_miptree_copy(struct brw_context *brw,
+ struct intel_mipmap_tree *src_mt,
+ int src_level, int src_slice,
+ uint32_t src_x, uint32_t src_y,
+ struct intel_mipmap_tree *dst_mt,
+ int dst_level, int dst_slice,
+ uint32_t dst_x, uint32_t dst_y,
+ uint32_t src_width, uint32_t src_height);
+
bool
intelEmitImmediateColorExpandBlit(struct brw_context *brw,
GLuint cpp,