lima: Fix crashes for GPUs with more than four cores
authorIcecream95 <ixn@disroot.org>
Mon, 6 Sep 2021 09:38:43 +0000 (21:38 +1200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 8 Sep 2021 04:19:56 +0000 (04:19 +0000)
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12738>

src/gallium/drivers/lima/lima_job.c

index 9503075..ef8a644 100644 (file)
@@ -552,8 +552,8 @@ lima_generate_pp_stream(struct lima_job *job, int off_x, int off_y,
     */
    int max = MAX2(tiled_w, tiled_h);
    int index = 0;
-   uint32_t *stream[4];
-   int si[4] = {0};
+   uint32_t *stream[8];
+   int si[8] = {0};
    int dim = 0;
    int count = 0;