svga: use the winsys interface to invalidate surface
authorCharmaine Lee <charmainel@vmware.com>
Thu, 20 Apr 2017 01:34:36 +0000 (18:34 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 26 Apr 2017 17:37:59 +0000 (11:37 -0600)
Instead of directly sending the InvalidateGBSurface command,
this patch uses the invalidate_surface interface.

Fixes Linux VM piglit failures including
   ext_texture_array-gen-mipmap, fbo-generatemipmap-array S3TC_DXT1

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_surface.c

index 795a7b8ffd6023a577fec936333a9cdd4b5a0f71..6aab34a0cf2566ad6916e8a446c667df5755ff85 100644 (file)
@@ -524,11 +524,7 @@ svga_validate_surface_view(struct svga_context *svga, struct svga_surface *s)
           * need to update the host-side copy with the invalid
           * content when the associated mob is first bound to the surface.
           */
-         ret = SVGA3D_InvalidateGBSurface(svga->swc, stex->handle);
-         if (ret != PIPE_OK) {
-            s = NULL;
-            goto done;
-         }
+         svga->swc->surface_invalidate(svga->swc, stex->handle);
          stex->validated = TRUE;
       }