mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-19 21:10:30 +01:00
nouveau: return pitch value from local_handle_from_texture()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
7aeaca33c3
commit
5313f1be11
1 changed files with 1 additions and 0 deletions
|
|
@ -245,6 +245,7 @@ nouveau_drm_handle_from_pt(struct drm_api *api, struct pipe_screen *pscreen,
|
|||
return false;
|
||||
|
||||
*handle = mt->bo->handle;
|
||||
*stride = mt->base.nblocksx[0] * mt->base.block.size;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue