11// SPDX-License-Identifier: GPL-2.0 OR MIT
22/**************************************************************************
33 *
4- * Copyright 2012-2015 VMware, Inc., Palo Alto, CA., USA
4+ * Copyright 2012-2021 VMware, Inc., Palo Alto, CA., USA
55 *
66 * Permission is hereby granted, free of charge, to any person obtaining a
77 * copy of this software and associated documentation files (the
2929
3030#include "vmwgfx_drv.h"
3131
32- /*
33- * If we set up the screen target otable, screen objects stop working.
34- */
35-
36- #define VMW_OTABLE_SETUP_SUB ((VMWGFX_ENABLE_SCREEN_TARGET_OTABLE ? 0 : 1))
37-
3832#ifdef CONFIG_64BIT
3933#define VMW_PPN_SIZE 8
4034#define VMW_MOBFMT_PTDEPTH_0 SVGA3D_MOBFMT_PT64_0
@@ -75,7 +69,7 @@ static const struct vmw_otable pre_dx_tables[] = {
7569 {VMWGFX_NUM_GB_CONTEXT * sizeof (SVGAOTableContextEntry ), NULL , true},
7670 {VMWGFX_NUM_GB_SHADER * sizeof (SVGAOTableShaderEntry ), NULL , true},
7771 {VMWGFX_NUM_GB_SCREEN_TARGET * sizeof (SVGAOTableScreenTargetEntry ),
78- NULL , VMWGFX_ENABLE_SCREEN_TARGET_OTABLE }
72+ NULL , true }
7973};
8074
8175static const struct vmw_otable dx_tables [] = {
@@ -84,7 +78,7 @@ static const struct vmw_otable dx_tables[] = {
8478 {VMWGFX_NUM_GB_CONTEXT * sizeof (SVGAOTableContextEntry ), NULL , true},
8579 {VMWGFX_NUM_GB_SHADER * sizeof (SVGAOTableShaderEntry ), NULL , true},
8680 {VMWGFX_NUM_GB_SCREEN_TARGET * sizeof (SVGAOTableScreenTargetEntry ),
87- NULL , VMWGFX_ENABLE_SCREEN_TARGET_OTABLE },
81+ NULL , true },
8882 {VMWGFX_NUM_DXCONTEXT * sizeof (SVGAOTableDXContextEntry ), NULL , true},
8983};
9084
0 commit comments