mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
freedreno: a2xx: don't write 4th vertex in mem2gmem
There is only room for 3 vertices now (RECT has 3 vertices). Fixes:6ef7700aSigned-off-by: Jonathan Marek <jonathan@marek.ca> (cherry picked from commit357313ab0f)
This commit is contained in:
parent
17361a3be9
commit
04fd26cd29
1 changed files with 1 additions and 3 deletions
|
|
@ -272,7 +272,7 @@ fd2_emit_tile_mem2gmem(struct fd_batch *batch, struct fd_tile *tile)
|
|||
x1 = ((float)tile->xoff + bin_w) / ((float)pfb->width);
|
||||
y0 = ((float)tile->yoff) / ((float)pfb->height);
|
||||
y1 = ((float)tile->yoff + bin_h) / ((float)pfb->height);
|
||||
OUT_PKT3(ring, CP_MEM_WRITE, 9);
|
||||
OUT_PKT3(ring, CP_MEM_WRITE, 7);
|
||||
OUT_RELOC(ring, fd_resource(fd2_ctx->solid_vertexbuf)->bo, 36, 0, 0);
|
||||
OUT_RING(ring, fui(x0));
|
||||
OUT_RING(ring, fui(y0));
|
||||
|
|
@ -280,8 +280,6 @@ fd2_emit_tile_mem2gmem(struct fd_batch *batch, struct fd_tile *tile)
|
|||
OUT_RING(ring, fui(y0));
|
||||
OUT_RING(ring, fui(x0));
|
||||
OUT_RING(ring, fui(y1));
|
||||
OUT_RING(ring, fui(x1));
|
||||
OUT_RING(ring, fui(y1));
|
||||
|
||||
OUT_PKT3(ring, CP_SET_CONSTANT, 2);
|
||||
OUT_RING(ring, CP_REG(REG_A2XX_VGT_INDX_OFFSET));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue