Module: Mesa Branch: master Commit: 0dbdb070705ea063430ed4ff1fbdbc87d86165ea URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0dbdb070705ea063430ed4ff1fbdbc87d86165ea
Author: Ilia Mirkin <[email protected]> Date: Fri Dec 22 00:27:50 2017 -0500 freedreno: set missing internal_format when importing texture Fixes running piglits without -fbo. Probably lots of other stuff too. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Rob Clark <[email protected]> --- src/gallium/drivers/freedreno/freedreno_resource.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index cb13f671c4..daa162c166 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
