mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-08 08:08:25 +02:00
nvc0: use format from the template on surface creation
Fixes piglit/fbo-srgb.
This commit is contained in:
parent
1b4c0c8ea0
commit
bf1ce9c64b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue