Jerome Glisse 2013-04-24 19:15:52 -04:00
parent 3900a0e4df
commit c7a13dc5f5
2 changed files with 2 additions and 0 deletions

View file

@ -1691,6 +1691,7 @@ static void evergreen_init_depth_surface(struct r600_context *rctx,
surf->db_htile_data_base = va >> 8;
surf->db_htile_surface = S_028ABC_HTILE_WIDTH(1) |
S_028ABC_HTILE_HEIGHT(1) |
S_028ABC_FULL_CACHE(1) |
S_028ABC_LINEAR(1);
surf->db_depth_info |= S_028040_TILE_SURFACE_ENABLE(1);
surf->db_preload_control = 0;

View file

@ -1532,6 +1532,7 @@ static void r600_init_depth_surface(struct r600_context *rctx,
surf->db_htile_data_base = va >> 8;
surf->db_htile_surface = S_028D24_HTILE_WIDTH(1) |
S_028D24_HTILE_HEIGHT(1) |
S_028D24_FULL_CACHE(1) |
S_028D24_LINEAR(1);
/* preload is not working properly on r6xx/r7xx */
surf->db_depth_info |= S_028010_TILE_SURFACE_ENABLE(1);