summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2017-04-19 18:34:36 -0700
committerBrian Paul <[email protected]>2017-04-26 11:37:59 -0600
commit019d5d534682145a3d5921b061ea46f8c872d6a0 (patch)
tree0cd86c38f76c5d202d89d09ca009c5f6b28303d4 /src/gallium
parent5bd5ec6a0f1821a8ac5e1d4ee59b324588adc2d5 (diff)
svga: use the winsys interface to invalidate surface
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 <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/svga/svga_surface.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/drivers/svga/svga_surface.c b/src/gallium/drivers/svga/svga_surface.c
index 795a7b8ffd6..6aab34a0cf2 100644
--- a/src/gallium/drivers/svga/svga_surface.c
+++ b/src/gallium/drivers/svga/svga_surface.c
@@ -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;
}