drm/vmwgfx: 3D disabled should not effect STDU memory limits
authorIan Forbes <ian.forbes@broadcom.com>
Tue, 21 May 2024 18:47:18 +0000 (13:47 -0500)
committerZack Rusin <zack.rusin@broadcom.com>
Thu, 6 Jun 2024 02:10:47 +0000 (22:10 -0400)
commitfb5e19d2dd03eb995ccd468d599b2337f7f66555
tree53e1dbac9a2ea3cf71dc4c83bba6cbf6ae4f1a02
parent426826933109093503e7ef15d49348fc5ab505fe
drm/vmwgfx: 3D disabled should not effect STDU memory limits

This limit became a hard cap starting with the change referenced below.
Surface creation on the device will fail if the requested size is larger
than this limit so altering the value arbitrarily will expose modes that
are too large for the device's hard limits.

Fixes: 7ebb47c9f9ab ("drm/vmwgfx: Read new register for GB memory when available")

Signed-off-by: Ian Forbes <ian.forbes@broadcom.com>
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240521184720.767-3-ian.forbes@broadcom.com
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c