svga: fix src/dst typo in can_blit_via_copy_region_vgpu10()
authorBrian Paul <brianp@vmware.com>
Wed, 17 Aug 2016 14:31:20 +0000 (08:31 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Aug 2016 18:53:20 +0000 (12:53 -0600)
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 <charmainel@vmware.com>
Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/gallium/drivers/svga/svga_pipe_blit.c

index 1f6382e..9d8c4fe 100644 (file)
@@ -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)