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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user