diff options
author | Thomas Hellstrom <[email protected]> | 2018-01-15 12:51:27 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-02-28 20:15:04 +0000 |
commit | f75a99501b2c71fe343662555e4f18deb02bbaa0 (patch) | |
tree | 276f89ea180bf3845735a15ccf906c25f590cb60 | |
parent | 98dd3e1bf199cd0d4f5c3fc22e1a871d3b34740c (diff) |
svga: Fix a leftover debug hack
Fix what appears to be a leftover debug hack.
The hack would force the driver to take a different blit path; possibly,
although unverified, reverting to software blits.
Tested using piglit tests/quick. No related regressions.
Cc: "17.2 17.3 18.0" <[email protected]>
Fixes: 9d81ab7376 (svga: Relax the format checks for copy_region_vgpu10 somewhat)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104625
Reported-by: Grazvydas Ignotas <[email protected]>
Signed-off-by: Thomas Hellstrom <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 80c31f7837cd319910d94d780f5048de6cce0adb)
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_blit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_blit.c b/src/gallium/drivers/svga/svga_pipe_blit.c index e98113c3854..4b65a69a9e2 100644 --- a/src/gallium/drivers/svga/svga_pipe_blit.c +++ b/src/gallium/drivers/svga/svga_pipe_blit.c @@ -351,8 +351,8 @@ can_blit_via_surface_copy(struct svga_context *svga, if (blit_info->src.resource->format != blit_info->src.format || blit_info->dst.resource->format != blit_info->dst.format || - !util_is_format_compatible(src_desc, dst_desc)); - return FALSE; + !util_is_format_compatible(src_desc, dst_desc)) + return false; } if (svga->render_condition && blit_info->render_condition_enable) |