pvr: Implement WA BRN_72463

Signed-off-by: Ashish Chauhan <Ashish.Chauhan@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Ashish Chauhan 2024-09-06 15:03:17 +01:00 committed by Marge Bot
parent 3c83b0274d
commit 116e1ecdec
3 changed files with 12 additions and 0 deletions

View file

@ -121,6 +121,7 @@ static const struct pvr_device_quirks pvr_device_quirks_36_53_104_796 = {
.has_brn44079 = true,
.has_brn70165 = true,
.has_brn72168 = true,
.has_brn72463 = true,
};
static const struct pvr_device_info pvr_device_info_36_53_104_796 = {

View file

@ -364,6 +364,7 @@ struct pvr_device_quirks {
bool has_brn66011 : 1;
bool has_brn70165 : 1;
bool has_brn72168 : 1;
bool has_brn72463 : 1;
};
struct pvr_device_info {

View file

@ -1363,6 +1363,16 @@ static void pvr_frag_state_stream_init(struct pvr_render_ctx *ctx,
value.skip_init_hdrs = false;
}
}
if (PVR_HAS_QUIRK(dev_info, 72463)) {
/* We cannot set SKIP_INIT_HDRS if the number of tile group rows is
* <= 2 AND the width is <= 2 tiles.
*/
if ((((tiling_info.y_tile_max + 1) / 2) <= 2) &&
(tiling_info.x_tile_max <= 1)) {
value.skip_init_hdrs = false;
}
}
}
}
/* FIXME: When pvr_setup_tiles_in_flight() is refactored it might be