turnip: fix hw binning render area
authorJonathan Marek <jonathan@marek.ca>
Thu, 12 Dec 2019 21:51:39 +0000 (16:51 -0500)
committerJonathan Marek <jonathan@marek.ca>
Fri, 13 Dec 2019 01:33:17 +0000 (20:33 -0500)
Fix a mistake in the y2 coordinate.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/freedreno/vulkan/tu_cmd_buffer.c

index e30bc36fa2ac7a106e6c933562c00863d8dee995..c0c308ed31bf965a92107456c36f5f63e997e0bf 100644 (file)
@@ -1254,7 +1254,7 @@ tu6_emit_binning_pass(struct tu_cmd_buffer *cmd, struct tu_cs *cs)
    uint32_t x1 = tiling->tile0.offset.x;
    uint32_t y1 = tiling->tile0.offset.y;
    uint32_t x2 = tiling->render_area.offset.x + tiling->render_area.extent.width - 1;
-   uint32_t y2 = tiling->render_area.offset.x + tiling->render_area.extent.height - 1;
+   uint32_t y2 = tiling->render_area.offset.y + tiling->render_area.extent.height - 1;
 
    tu6_emit_window_scissor(cmd, cs, x1, y1, x2, y2);