Placate things that think 16k x 16k FBO is a good idea.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6997
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17888>
gmem->width = key->width;
gmem->height = key->height;
+ gmem->tile = rzalloc_array(gmem, struct fd_tile, gmem->nbins_x * gmem->nbins_y);
+
if (BIN_DEBUG) {
dump_gmem_state(gmem);
dump_gmem_key(key);
struct fd_tile *tile = &gmem->tile[t];
uint32_t p;
- assert(t < ARRAY_SIZE(gmem->tile));
-
/* pipe number: */
p = ((i / tpp_y) * div_round_up(gmem->nbins_x, tpp_x)) + (j / tpp_x);
assert(p < gmem->num_vsc_pipes);
uint8_t num_vsc_pipes; /* number of pipes for a20x */
struct fd_vsc_pipe vsc_pipe[32];
- struct fd_tile tile[2048];
+ struct fd_tile *tile;
struct list_head node;
};