summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_transfer.c
diff options
context:
space:
mode:
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)
{