projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c78b2e
)
anv/blorp: Handle zero width/height blits in blorp_copy()
author
Anuj Phogat
<anuj.phogat@gmail.com>
Mon, 26 Sep 2016 17:17:49 +0000
(10:17 -0700)
committer
Anuj Phogat
<anuj.phogat@gmail.com>
Tue, 4 Oct 2016 20:20:34 +0000
(13:20 -0700)
V2: Move the check from copy_buffer_to_image() to blorp_copy(). (Nanley)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/blorp/blorp_blit.c
patch
|
blob
|
history
diff --git
a/src/intel/blorp/blorp_blit.c
b/src/intel/blorp/blorp_blit.c
index af463890579132c57d37cb0d24b5b72737371002..0c3ee72b11fc3a7215743db145ae2e7bbcf5c7db 100644
(file)
--- a/
src/intel/blorp/blorp_blit.c
+++ b/
src/intel/blorp/blorp_blit.c
@@
-1838,8
+1838,11
@@
blorp_copy(struct blorp_batch *batch,
uint32_t src_width, uint32_t src_height)
{
struct blorp_params params;
- blorp_params_init(¶ms);
+ if (src_width == 0 || src_height == 0)
+ return;
+
+ blorp_params_init(¶ms);
brw_blorp_surface_info_init(batch->blorp, ¶ms.src, src_surf, src_level,
src_layer, ISL_FORMAT_UNSUPPORTED, false);
brw_blorp_surface_info_init(batch->blorp, ¶ms.dst, dst_surf, dst_level,