summaryrefslogtreecommitdiff
path: root/lib/rendercopy_gen9.c
diff options
context:
space:
mode:
authorMika Kahola <mika.kahola@intel.com>2020-11-23 16:14:28 +0200
committerMika Kahola <mika.kahola@intel.com>2020-11-24 09:21:52 +0200
commit5236e5d4be3ab5e2fedacc32152120b7fb77bf9f (patch)
tree52a156270a624a001695811083873da9c773a11d /lib/rendercopy_gen9.c
parent36b5fc05c30dbfd9242069fd6e51ebb419b386bc (diff)
lib/rendercopy_gen9: Ensure to cover all destination area
To ensure to cover all destination area during fast clear, we need to round up the destination coordinates at the lower right corner. Signed-off-by: Mika Kahola <mika.kahola@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/rendercopy_gen9.c')
-rw-r--r--lib/rendercopy_gen9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c
index dd8c8c7c..eecf73d3 100644
--- a/lib/rendercopy_gen9.c
+++ b/lib/rendercopy_gen9.c
@@ -293,7 +293,7 @@ gen7_fill_vertex_buffer_data(struct intel_bb *ibb,
emit_vertex_normalized(ibb, src_x, intel_buf_width(src));
emit_vertex_normalized(ibb, src_y, intel_buf_height(src));
} else {
- emit_vertex_2s(ibb, (dst_x + width)/64, DIV_ROUND_UP(dst_y + height, 16));
+ emit_vertex_2s(ibb, DIV_ROUND_UP(dst_x + width, 64), DIV_ROUND_UP(dst_y + height, 16));
emit_vertex_normalized(ibb, 0, 0);
emit_vertex_normalized(ibb, 0, 0);