nv50,nvc0: copy writable flag on surface creation
This commit is contained in:
parent
7a91d3a2a4
commit
47f2179844
|
@ -406,6 +406,7 @@ nv50_surface_from_miptree(struct nv50_miptree *mt,
|
|||
pipe_resource_reference(&ps->texture, &mt->base.base);
|
||||
|
||||
ps->format = templ->format;
|
||||
ps->writable = templ->writable;
|
||||
ps->u.tex.level = templ->u.tex.level;
|
||||
ps->u.tex.first_layer = templ->u.tex.first_layer;
|
||||
ps->u.tex.last_layer = templ->u.tex.last_layer;
|
||||
|
|
|
@ -43,6 +43,7 @@ nv50_surface_from_buffer(struct pipe_context *pipe,
|
|||
pipe_resource_reference(&sf->base.texture, pbuf);
|
||||
|
||||
sf->base.format = templ->format;
|
||||
sf->base.writable = templ->writable;
|
||||
sf->base.u.buf.first_element = templ->u.buf.first_element;
|
||||
sf->base.u.buf.last_element = templ->u.buf.last_element;
|
||||
|
||||
|
|
Loading…
Reference in New Issue