diff options
author | Christoph Bumiller <[email protected]> | 2011-02-12 18:50:03 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-02-16 15:45:30 +0100 |
commit | bf1ce9c64b3da731bc6073055abc9f3340ac5a17 (patch) | |
tree | 6a8b1b685abd61eb2c9744d46dfa49c58278bc45 | |
parent | 1b4c0c8ea0b4e6065f23f9f2bbb954a7bd2549e4 (diff) |
nvc0: use format from the template on surface creation
Fixes piglit/fbo-srgb.
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_miptree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_miptree.c b/src/gallium/drivers/nvc0/nvc0_miptree.c index 22f48c8a5fe..ea3ed9e0225 100644 --- a/src/gallium/drivers/nvc0/nvc0_miptree.c +++ b/src/gallium/drivers/nvc0/nvc0_miptree.c @@ -283,7 +283,7 @@ nvc0_miptree_surface_new(struct pipe_context *pipe, pipe_reference_init(&ps->reference, 1); pipe_resource_reference(&ps->texture, pt); ps->context = pipe; - ps->format = pt->format; + ps->format = templ->format; ps->usage = templ->usage; ps->u.tex.level = templ->u.tex.level; ps->u.tex.first_layer = templ->u.tex.first_layer; |