diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_texture.c | 16 | ||||
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_surface.c | 6 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/gallium/drivers/radeonsi/si_texture.c b/src/gallium/drivers/radeonsi/si_texture.c index e072fbd0b4d..3fd34af338d 100644 --- a/src/gallium/drivers/radeonsi/si_texture.c +++ b/src/gallium/drivers/radeonsi/si_texture.c @@ -852,9 +852,9 @@ void si_texture_get_fmask_info(struct si_screen *sscreen, struct r600_fmask_info *out) { if (sscreen->info.chip_class >= GFX9) { - out->alignment = rtex->surface.u.gfx9.fmask_alignment; - out->size = rtex->surface.u.gfx9.fmask_size; - out->tile_swizzle = rtex->surface.u.gfx9.fmask_tile_swizzle; + out->alignment = rtex->surface.fmask_alignment; + out->size = rtex->surface.fmask_size; + out->tile_swizzle = rtex->surface.fmask_tile_swizzle; return; } @@ -862,9 +862,9 @@ void si_texture_get_fmask_info(struct si_screen *sscreen, out->tile_mode_index = rtex->surface.u.legacy.fmask.tiling_index; out->pitch_in_pixels = rtex->surface.u.legacy.fmask.pitch_in_pixels; out->bank_height = rtex->surface.u.legacy.fmask.bankh; - out->tile_swizzle = rtex->surface.u.legacy.fmask.tile_swizzle; - out->alignment = rtex->surface.u.legacy.fmask.alignment; - out->size = rtex->surface.u.legacy.fmask.size; + out->tile_swizzle = rtex->surface.fmask_tile_swizzle; + out->alignment = rtex->surface.fmask_alignment; + out->size = rtex->surface.fmask_size; } static void si_texture_allocate_fmask(struct si_screen *sscreen, @@ -1053,8 +1053,8 @@ void si_print_texture_info(struct si_screen *sscreen, u_log_printf(log, " FMASK: offset=%"PRIu64", size=%"PRIu64", " "alignment=%u, swmode=%u, epitch=%u\n", rtex->fmask.offset, - rtex->surface.u.gfx9.fmask_size, - rtex->surface.u.gfx9.fmask_alignment, + rtex->surface.fmask_size, + rtex->surface.fmask_alignment, rtex->surface.u.gfx9.fmask.swizzle_mode, rtex->surface.u.gfx9.fmask.epitch); } diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_surface.c b/src/gallium/winsys/radeon/drm/radeon_drm_surface.c index 58114888966..61220ed7fe3 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_surface.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_surface.c @@ -277,9 +277,9 @@ static int radeon_winsys_surface_init(struct radeon_winsys *rws, assert(fmask.u.legacy.level[0].mode == RADEON_SURF_MODE_2D); - surf_ws->u.legacy.fmask.size = fmask.surf_size; - surf_ws->u.legacy.fmask.alignment = MAX2(256, fmask.surf_alignment); - surf_ws->u.legacy.fmask.tile_swizzle = fmask.tile_swizzle; + surf_ws->fmask_size = fmask.surf_size; + surf_ws->fmask_alignment = MAX2(256, fmask.surf_alignment); + surf_ws->fmask_tile_swizzle = fmask.tile_swizzle; surf_ws->u.legacy.fmask.slice_tile_max = (fmask.u.legacy.level[0].nblk_x * fmask.u.legacy.level[0].nblk_y) / 64; |