mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
nouveau: Take into account sx,sy parameters to read from source surface
This commit is contained in:
parent
ede9f3b52e
commit
db40bb0287
1 changed files with 2 additions and 2 deletions
|
|
@ -153,8 +153,8 @@ nv04_surface_copy_swizzle(struct nv04_surface_2d *ctx,
|
|||
OUT_RING (chan, src_pitch |
|
||||
NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT_ORIGIN_CENTER |
|
||||
NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT_FILTER_POINT_SAMPLE);
|
||||
OUT_RELOCl(chan, src_bo, src->offset + cy * src_pitch +
|
||||
cx * src->texture->block.size, NOUVEAU_BO_GART |
|
||||
OUT_RELOCl(chan, src_bo, src->offset + (cy+sy) * src_pitch +
|
||||
(cx+sx) * src->texture->block.size, NOUVEAU_BO_GART |
|
||||
NOUVEAU_BO_VRAM | NOUVEAU_BO_RD);
|
||||
OUT_RING (chan, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue