summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_buffer.c
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-08-03 22:50:19 +0200
committerLuca Barbieri <[email protected]>2010-08-21 20:42:14 +0200
commit37fa0cf4eaf6e67876a1f6b33389f17f99b02461 (patch)
treeb6c071ed54743c5979a46e641b0ad4e28c2893e5 /src/gallium/drivers/nvfx/nvfx_buffer.c
parent6a73d99a5236eeb822e9bdd26bd669638cf036c6 (diff)
nvfx: add linear flag for buffers
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_buffer.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_buffer.c b/src/gallium/drivers/nvfx/nvfx_buffer.c
index 05b824b8f74..4482d9683ed 100644
--- a/src/gallium/drivers/nvfx/nvfx_buffer.c
+++ b/src/gallium/drivers/nvfx/nvfx_buffer.c
@@ -97,6 +97,7 @@ nvfx_buffer_create(struct pipe_screen *pscreen,
return NULL;
buffer->base = *template;
+ buffer->base.flags |= NVFX_RESOURCE_FLAG_LINEAR;
buffer->vtbl = &nvfx_buffer_vtbl;
pipe_reference_init(&buffer->base.reference, 1);
buffer->base.screen = pscreen;
@@ -132,6 +133,7 @@ nvfx_user_buffer_create(struct pipe_screen *pscreen,
pipe_reference_init(&buffer->base.reference, 1);
buffer->vtbl = &nvfx_buffer_vtbl;
+ buffer->base.flags = NVFX_RESOURCE_FLAG_LINEAR;
buffer->base.screen = pscreen;
buffer->base.format = PIPE_FORMAT_R8_UNORM;
buffer->base.usage = PIPE_USAGE_IMMUTABLE;