diff --git a/.pick_status.json b/.pick_status.json index 36577f65027..d7151406f95 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1012,7 +1012,7 @@ "description": "freedreno/gmem: Fix col0 calc", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "81d85be9a5cfb5860ba5d15f2bf6f1a4946e411e" }, diff --git a/src/gallium/drivers/freedreno/freedreno_gmem.c b/src/gallium/drivers/freedreno/freedreno_gmem.c index 681063f003e..e0b0d95ca8a 100644 --- a/src/gallium/drivers/freedreno/freedreno_gmem.c +++ b/src/gallium/drivers/freedreno/freedreno_gmem.c @@ -433,7 +433,7 @@ gmem_stateobj_init(struct fd_screen *screen, struct gmem_key *key) */ if (!FD_DBG(NOSBIN)) { for (i = 0; i < gmem->nbins_y; i+=2) { - unsigned col0 = gmem->nbins_y * i; + unsigned col0 = gmem->nbins_x * i; for (j = 0; j < gmem->nbins_x/2; j++) { swap(gmem->tile[col0 + j], gmem->tile[col0 + gmem->nbins_x - j - 1]); }