mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 08:00:13 +01:00
freedreno: set missing internal_format when importing texture
Fixes running piglits without -fbo. Probably lots of other stuff too. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
38f9b87af2
commit
0dbdb07070
1 changed files with 1 additions and 0 deletions
|
|
@ -832,6 +832,7 @@ fd_resource_from_handle(struct pipe_screen *pscreen,
|
|||
if (!rsc->bo)
|
||||
goto fail;
|
||||
|
||||
rsc->internal_format = tmpl->format;
|
||||
rsc->cpp = util_format_get_blocksize(tmpl->format);
|
||||
slice->pitch = handle->stride / rsc->cpp;
|
||||
slice->offset = handle->offset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue