nv50,nvc0: copy writable flag on surface creation

This commit is contained in:
Christoph Bumiller 2013-03-01 21:37:37 +01:00
parent 7a91d3a2a4
commit 47f2179844
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;