Skip to content

Commit

Permalink
lima: use LIMA_CTX_PLB_BLK_SIZE in lima_update_plb
Browse files Browse the repository at this point in the history
Signed-off-by: Qiang Yu <yuq825@gmail.com>
  • Loading branch information
yuq committed Apr 22, 2018
1 parent 61e3097 commit 376b3c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gallium/drivers/lima/lima_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ lima_update_plb(struct lima_context *ctx, struct lima_ctx_plb_pp_stream *s)
hilbert_coords(max, i, &x, &y);
if (x < fb->tiled_w && y < fb->tiled_h) {
int pp = index % num_pp;
int offset = ((y >> fb->shift_h) * fb->block_w + (x >> fb->shift_w)) * 512;
int offset = ((y >> fb->shift_h) * fb->block_w +
(x >> fb->shift_w)) * LIMA_CTX_PLB_BLK_SIZE;
int plb_va = ctx->plb[s->key.plb_index]->va + offset;

stream[pp][si[pp]++] = 0;
Expand Down

0 comments on commit 376b3c8

Please sign in to comment.