summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_transfer.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-04-20 10:00:03 -0600
committerBrian Paul <[email protected]>2010-04-20 10:00:03 -0600
commita2a01853f3f40b4ef8b3f01503391877960bdaee (patch)
treeffd8f8df1aeecc3bed2c799157fac10975094f1e /src/gallium/drivers/nvfx/nvfx_transfer.c
parent36c9557cae78814b320768697eaccf3cf0e0ebae (diff)
gallium: replace pipe_resource::_usage with pipe_resource::usage
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_transfer.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_transfer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_transfer.c b/src/gallium/drivers/nvfx/nvfx_transfer.c
index a776ab58311..b2ef27cf579 100644
--- a/src/gallium/drivers/nvfx/nvfx_transfer.c
+++ b/src/gallium/drivers/nvfx/nvfx_transfer.c
@@ -31,7 +31,7 @@ nvfx_compatible_transfer_tex(struct pipe_resource *pt, unsigned width, unsigned
template->last_level = 0;
template->nr_samples = pt->nr_samples;
template->bind = bind;
- template->_usage = PIPE_USAGE_DYNAMIC;
+ template->usage = PIPE_USAGE_DYNAMIC;
template->flags = NVFX_RESOURCE_FLAG_LINEAR;
}
@@ -81,7 +81,7 @@ nvfx_miptree_transfer_new(struct pipe_context *pipe,
tx->base.stride = mt->level[sr.level].pitch;
/* Direct access to texture */
- if ((pt->_usage == PIPE_USAGE_DYNAMIC ||
+ if ((pt->usage == PIPE_USAGE_DYNAMIC ||
no_transfer) &&
pt->flags & NVFX_RESOURCE_FLAG_LINEAR)
{