diff options
author | Jonathan Marek <[email protected]> | 2020-02-27 11:20:59 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-28 14:04:20 +0000 |
commit | de3230e0a5d90911f8a4e376629e264278dffc00 (patch) | |
tree | 7658cd3cbfcb0863d2ef860ce835f690a4ebac68 /src/freedreno | |
parent | cf302c9a22fab86da0bc70f377c8f0c43f5d8d77 (diff) |
turnip: remove unnecessary fb size check
Framebuffer with 0 width or height is not valid.
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3979>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/vulkan/tu_cmd_buffer.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index f8e1ffe1c9d..a3d5a93f3a3 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -1480,13 +1480,9 @@ tu6_sysmem_render_begin(struct tu_cmd_buffer *cmd, struct tu_cs *cs, const struct VkRect2D *renderArea) { const struct tu_framebuffer *fb = cmd->state.framebuffer; - if (fb->width > 0 && fb->height > 0) { - tu6_emit_window_scissor(cmd, cs, - 0, 0, fb->width - 1, fb->height - 1); - } else { - tu6_emit_window_scissor(cmd, cs, 0, 0, 0, 0); - } + assert(fb->width > 0 && fb->height > 0); + tu6_emit_window_scissor(cmd, cs, 0, 0, fb->width - 1, fb->height - 1); tu6_emit_window_offset(cmd, cs, 0, 0); tu6_emit_bin_size(cs, 0, 0, 0xc00000); /* 0xc00000 = BYPASS? */ |