mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-13 13:10:34 +01:00
ac/surface: remove remaining occurrences of HiS on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40213>
This commit is contained in:
parent
f109bfc3f1
commit
fc7d2eda2c
2 changed files with 12 additions and 12 deletions
|
|
@ -3301,10 +3301,10 @@ static unsigned gfx12_select_swizzle_mode(struct ac_addrlib *addrlib,
|
|||
return ADDR3_LINEAR;
|
||||
}
|
||||
|
||||
static bool gfx12_compute_hiz_his_info(struct ac_addrlib *addrlib, const struct radeon_info *info,
|
||||
const struct ac_surf_config *config,
|
||||
struct radeon_surf *surf, struct gfx12_hiz_his_layout *hizs,
|
||||
const ADDR3_COMPUTE_SURFACE_INFO_INPUT *surf_in)
|
||||
static bool gfx12_compute_hiz_info(struct ac_addrlib *addrlib, const struct radeon_info *info,
|
||||
const struct ac_surf_config *config,
|
||||
struct radeon_surf *surf, struct gfx12_hiz_layout *hiz,
|
||||
const ADDR3_COMPUTE_SURFACE_INFO_INPUT *surf_in)
|
||||
{
|
||||
assert(surf_in->flags.depth != surf_in->flags.stencil);
|
||||
|
||||
|
|
@ -3336,11 +3336,11 @@ static bool gfx12_compute_hiz_his_info(struct ac_addrlib *addrlib, const struct
|
|||
if (ret != ADDR_OK)
|
||||
return false;
|
||||
|
||||
hizs->size = out.surfSize;
|
||||
hizs->width_in_tiles = in.width;
|
||||
hizs->height_in_tiles = in.height;
|
||||
hizs->swizzle_mode = in.swizzleMode;
|
||||
hizs->alignment_log2 = out.baseAlign;
|
||||
hiz->size = out.surfSize;
|
||||
hiz->width_in_tiles = in.width;
|
||||
hiz->height_in_tiles = in.height;
|
||||
hiz->swizzle_mode = in.swizzleMode;
|
||||
hiz->alignment_log2 = out.baseAlign;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -3441,7 +3441,7 @@ static bool gfx12_compute_miptree(struct ac_addrlib *addrlib, const struct radeo
|
|||
if (in->flags.depth) {
|
||||
assert(in->swizzleMode != ADDR3_LINEAR);
|
||||
|
||||
return gfx12_compute_hiz_his_info(addrlib, info, config, surf, &surf->u.gfx9.zs.hiz, in);
|
||||
return gfx12_compute_hiz_info(addrlib, info, config, surf, &surf->u.gfx9.zs.hiz, in);
|
||||
}
|
||||
|
||||
/* Compute tile swizzle for the color surface. All swizzle modes >= 4K support it. */
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ struct gfx9_meta_equation {
|
|||
} u;
|
||||
};
|
||||
|
||||
struct gfx12_hiz_his_layout {
|
||||
struct gfx12_hiz_layout {
|
||||
uint64_t offset;
|
||||
uint32_t size;
|
||||
uint16_t width_in_tiles;
|
||||
|
|
@ -307,7 +307,7 @@ struct gfx9_surf_layout {
|
|||
uint16_t stencil_epitch; /* gfx9 only, not on gfx10 */
|
||||
uint8_t stencil_swizzle_mode;
|
||||
|
||||
struct gfx12_hiz_his_layout hiz;
|
||||
struct gfx12_hiz_layout hiz;
|
||||
|
||||
/* For HTILE VRS. (only Gfx103-Gfx11) */
|
||||
struct gfx9_meta_equation htile_equation;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue