drm/vmwgfx: Mark a surface gpu-dirty after the SVGA3dCmdDXGenMips command
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 5 May 2021 03:57:36 +0000 (23:57 -0400)
committerZack Rusin <zackr@vmware.com>
Tue, 11 May 2021 17:37:04 +0000 (13:37 -0400)
commit75156a887b6cea6e09d83ec19f4ebfd7c86265f0
tree0088b21dff5e2b6b2ef9546d707fa84b4fe61cdc
parent2cc8bfeeb7366a24f3ad726c05117984b89a90e1
drm/vmwgfx: Mark a surface gpu-dirty after the SVGA3dCmdDXGenMips command

The SVGA3dCmdDXGenMips command uses a shader-resource view to access
the underlying surface. Normally accesses using that view-type are not
dirtying the underlying surface, but that particular command is an
exception.
Mark the surface gpu-dirty after a SVGA3dCmdDXGenMips command has been
submitted.

This fixes the piglit getteximage-formats test run with
SVGA_FORCE_COHERENT=1

Fixes: a9f58c456e9d ("drm/vmwgfx: Be more restrictive when dirtying resources")
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Zack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210505035740.286923-3-zackr@vmware.com
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c