diff options
author | Ilia Mirkin <[email protected]> | 2017-12-22 00:27:50 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2017-12-22 09:56:02 -0500 |
commit | 0dbdb070705ea063430ed4ff1fbdbc87d86165ea (patch) | |
tree | e8421622dd6c051bab9baa5987bdc49a5c1be762 | |
parent | 38f9b87af24762d932891e67ff25db97cdbde6b5 (diff) |
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]>
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index cb13f671c48..daa162c166f 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; |