From: Brian Paul Date: Wed, 17 Aug 2016 14:31:20 +0000 (-0600) Subject: svga: fix src/dst typo in can_blit_via_copy_region_vgpu10() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18e6e0796a6b0d714e58ca95d70cff2bbb2027e1;p=mesa.git svga: fix src/dst typo in can_blit_via_copy_region_vgpu10() The function was always returning false because of this typo. Retested with piglit. There's some sRGB-related blit failures, but that seems unrelated. Reviewed-by: Charmaine Lee Reviewed-by: Neha Bhende --- diff --git a/src/gallium/drivers/svga/svga_pipe_blit.c b/src/gallium/drivers/svga/svga_pipe_blit.c index 1f6382e06a5..9d8c4fe3084 100644 --- a/src/gallium/drivers/svga/svga_pipe_blit.c +++ b/src/gallium/drivers/svga/svga_pipe_blit.c @@ -223,7 +223,7 @@ can_blit_via_copy_region_vgpu10(struct svga_context *svga, return false; stex = svga_texture(blit_info->src.resource); - dtex = svga_texture(blit_info->src.resource); + dtex = svga_texture(blit_info->dst.resource); // can't copy within one resource if (stex->handle == dtex->handle)