summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_resource.c
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2013-03-01 21:37:37 +0100
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2013-03-12 12:55:36 +0100
commit47f2179844bd21f8112367ef8ed0acead7160f10 (patch)
tree0b465f858c99e3bc84adbf1093cf10cdf6394426 /src/gallium/drivers/nv50/nv50_resource.c
parent7a91d3a2a4c4e7851fdb46465224213ce1874c9b (diff)
downloadexternal_mesa3d-47f2179844bd21f8112367ef8ed0acead7160f10.zip
external_mesa3d-47f2179844bd21f8112367ef8ed0acead7160f10.tar.gz
external_mesa3d-47f2179844bd21f8112367ef8ed0acead7160f10.tar.bz2
nv50,nvc0: copy writable flag on surface creation
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 d5c330d..43c6998 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;