From: Christoph Bumiller Date: Fri, 1 Mar 2013 20:37:37 +0000 (+0100) Subject: nv50,nvc0: copy writable flag on surface creation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47f2179844bd21f8112367ef8ed0acead7160f10;p=mesa.git nv50,nvc0: copy writable flag on surface creation --- diff --git a/src/gallium/drivers/nv50/nv50_miptree.c b/src/gallium/drivers/nv50/nv50_miptree.c index 7883edbe75e..b6eddb43d3f 100644 --- a/src/gallium/drivers/nv50/nv50_miptree.c +++ b/src/gallium/drivers/nv50/nv50_miptree.c @@ -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; diff --git a/src/gallium/drivers/nv50/nv50_resource.c b/src/gallium/drivers/nv50/nv50_resource.c index d5c330decc4..43c6998da3e 100644 --- a/src/gallium/drivers/nv50/nv50_resource.c +++ b/src/gallium/drivers/nv50/nv50_resource.c @@ -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;