summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_resource.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_resource.c1
1 files changed, 1 insertions, 0 deletions
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;