mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 04:50:11 +01:00
anv/blorp: Handle zero width/height blits in blorp_copy()
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>
This commit is contained in:
parent
2c78b2ec90
commit
f75a93f610
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue