The larger page alignment is directly related to the 96 tile alignment,
so check for that instead of a specific gpu id.
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11790>
*/
key->gmem_page_align = 8;
} else if (is_a6xx(screen)) {
- key->gmem_page_align = is_a650(screen) ? 3 : 1;
+ key->gmem_page_align = (screen->info.tile_align_w == 96) ? 3 : 1;
} else {
// TODO re-check this across gens.. maybe it should only
// be a single page in some cases:
return (screen->gpu_id >= 600) && (screen->gpu_id < 700);
}
-static inline boolean
-is_a650(struct fd_screen *screen)
-{
- return screen->gpu_id == 650;
-}
-
/* is it using the ir3 compiler (shader isa introduced with a3xx)? */
static inline boolean
is_ir3(struct fd_screen *screen)