Mesa (master): freedreno: set missing internal_format when importing texture

Ilia Mirkin imirkin at kemper.freedesktop.org
Fri Dec 22 14:56:24 UTC 2017


Module: Mesa
Branch: master
Commit: 0dbdb070705ea063430ed4ff1fbdbc87d86165ea
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0dbdb070705ea063430ed4ff1fbdbc87d86165ea

Author: Ilia Mirkin <imirkin at alum.mit.edu>
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 <imirkin at alum.mit.edu>
Reviewed-by: Rob Clark <robdclark at gmail.com>

---

 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;




More information about the mesa-commit mailing list