aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2021-05-04 23:57:35 -0400
committerZack Rusin <zackr@vmware.com>2021-05-11 13:06:56 -0400
commit2cc8bfeeb7366a24f3ad726c05117984b89a90e1 (patch)
tree02622ceccd5acb4f92346979288c86c9bf683920 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentca0b0c1f4a2aa281bf68668e00400e2bfbdaff0e (diff)
downloadlinux-2cc8bfeeb7366a24f3ad726c05117984b89a90e1.tar.gz
linux-2cc8bfeeb7366a24f3ad726c05117984b89a90e1.tar.bz2
linux-2cc8bfeeb7366a24f3ad726c05117984b89a90e1.zip
drm/vmwgfx: Fix incorrect enum usage
SVGA_REG_ENABLE is a register name, and SVGA_REG_ENABLE_(ENABLE| DISABLE|HIDE) are its valid values. We were incorrectly setting the register value to itself. This happened to work because the SVGA_REG_ENABLE is happens to to be the same value as SVGA_REG_ENABLE_ENABLE, but is still semantically incorrect. Lets use the correct enum when setting SVGA_REG_ENABLE. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210505035740.286923-2-zackr@vmware.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions