diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-03-07 00:58:04 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-03-07 09:58:27 +0100 |
commit | 3b455c1cb740c0357a0e748114b2c3b03d2dc4e2 (patch) | |
tree | 417315e710cc6a9e15588f6cd1526ba340b6a02b /src/amd/vulkan/radv_device.c | |
parent | dbecbab5aa6fec9d90089ff5e16bc74339edb955 (diff) |
radv: Use winsys HTILE info.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index ab04473b01c..9202baaaa8b 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -2404,7 +2404,7 @@ radv_initialise_ds_surface(struct radv_device *device, ds->db_stencil_info |= S_028044_TILE_MODE_INDEX(tile_mode_index); } - if (iview->image->htile.size && !level) { + if (iview->image->surface.htile_size && !level) { ds->db_z_info |= S_028040_TILE_SURFACE_ENABLE(1) | S_028040_ALLOW_EXPCLEAR(1); @@ -2427,7 +2427,7 @@ radv_initialise_ds_surface(struct radv_device *device, ds->db_stencil_info |= S_028044_TILE_STENCIL_DISABLE(1); va = device->ws->buffer_get_va(iview->bo) + iview->image->offset + - iview->image->htile.offset; + iview->image->htile_offset; ds->db_htile_data_base = va >> 8; ds->db_htile_surface = S_028ABC_FULL_CACHE(1); } else { |