[Mesa-dev] [PATCH] ac/surface: remove the overallocation workaround for Vega12
Marek Olšák
maraeo at gmail.com
Thu Nov 8 02:13:34 UTC 2018
From: Marek Olšák <marek.olsak at amd.com>
not needed anymore (probably since the tile_swizzle fix)
---
src/amd/common/ac_surface.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index 1f7e2344625..edd710a968c 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -1587,24 +1587,20 @@ static int gfx9_compute_surface(ADDR_HANDLE addrlib,
case ADDR_SW_4KB_Z_X:
case ADDR_SW_64KB_Z_X:
case ADDR_SW_VAR_Z_X:
surf->micro_tile_mode = RADEON_MICRO_MODE_DEPTH;
break;
default:
assert(0);
}
- /* Temporary workaround to prevent VM faults and hangs. */
- if (info->family == CHIP_VEGA12)
- surf->fmask_size *= 8;
-
return 0;
}
int ac_compute_surface(ADDR_HANDLE addrlib, const struct radeon_info *info,
const struct ac_surf_config *config,
enum radeon_surf_mode mode,
struct radeon_surf *surf)
{
int r;
--
2.17.1
More information about the mesa-dev
mailing list