WSL2-Linux-Kernel/drivers/gpu/drm/vmwgfx/device_include
Thomas Hellstrom 88509f698c drm/vmwgfx: Fix cpu updates of coherent multisample surfaces
In cases where the dirty linear memory range spans multiple sample sheets
in a surface, the dirty surface region is incorrectly computed.
To do this correctly and in an optimized fashion  we would have to compute
the dirty region of each sample sheet and compute the union of those
regions.

But assuming that cpu writing to a multisample surface is rather a corner
case than a common case, just set the dirty region to the full surface.

This fixes OpenGL piglit errors with SVGA_FORCE_COHERENT=1
and the piglit test:

fbo-depthstencil blit default_fb -samples=2 -auto

Fixes: 9ca7d19ff8 ("drm/vmwgfx: Add surface dirty-tracking callbacks")
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-4-zackr@vmware.com
2021-05-11 13:37:15 -04:00
..
includeCheck.h
svga3d_caps.h drm/vmwgfx: add SPDX idenitifier and clarify license 2018-06-29 15:28:48 -05:00
svga3d_cmd.h drm/vmwgfx: Sync virtual device headers for new feature 2020-03-23 22:39:34 +01:00
svga3d_devcaps.h drm/vmwgfx: Sync virtual device headers for new feature 2020-03-23 22:39:34 +01:00
svga3d_dx.h drm/vmwgfx: Sync virtual device headers for new feature 2020-03-23 22:39:34 +01:00
svga3d_limits.h drm/vmwgfx: Sync virtual device headers for new feature 2020-03-23 22:39:34 +01:00
svga3d_reg.h drm/vmwgfx: add SPDX idenitifier and clarify license 2018-06-29 15:28:48 -05:00
svga3d_surfacedefs.h drm/vmwgfx: Fix cpu updates of coherent multisample surfaces 2021-05-11 13:37:15 -04:00
svga3d_types.h drm/vmwgfx: Sync virtual device headers for new feature 2020-03-23 22:39:34 +01:00
svga_escape.h drm/vmwgfx: add SPDX idenitifier and clarify license 2018-06-29 15:28:48 -05:00
svga_overlay.h drm/vmwgfx: add SPDX idenitifier and clarify license 2018-06-29 15:28:48 -05:00
svga_reg.h drm/vmwgfx: Sync virtual device headers for new feature 2020-03-23 22:39:34 +01:00
svga_types.h drm/vmwgfx: Sync virtual device headers for new feature 2020-03-23 22:39:34 +01:00
vm_basic_types.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vmware_pack_begin.h drm/vmwgfx: add SPDX idenitifier and clarify license 2018-06-29 15:28:48 -05:00
vmware_pack_end.h drm/vmwgfx: add SPDX idenitifier and clarify license 2018-06-29 15:28:48 -05:00