Fixes cayman and TN with htile enabled. Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=59089
https://bugs.freedesktop.org/show_bug.cgi?id=58667
Possibly others.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
surf->htile_enabled = 0;
/* use htile only for first level */
if (rtex->htile && !level) {
+ uint64_t va = r600_resource_va(rctx->screen, rtex->htile);
surf->htile_enabled = 1;
- surf->db_htile_data_base = 0;
+ surf->db_htile_data_base = va >> 8;
surf->db_htile_surface = S_028ABC_HTILE_WIDTH(1) |
S_028ABC_HTILE_HEIGHT(1) |
S_028ABC_LINEAR(1);
surf->htile_enabled = 0;
/* use htile only for first level */
if (rtex->htile && !level) {
+ uint64_t va = r600_resource_va(rctx->screen, rtex->htile);
surf->htile_enabled = 1;
- surf->db_htile_data_base = 0;
+ surf->db_htile_data_base = va >> 8;
surf->db_htile_surface = S_028D24_HTILE_WIDTH(1) |
S_028D24_HTILE_HEIGHT(1) |
S_028D24_LINEAR(1);