util_dump_member_end(stream);
util_dump_member(stream, uint, templat, last_level);
- util_dump_member(stream, uint, templat, _usage);
+ util_dump_member(stream, uint, templat, usage);
util_dump_member(stream, uint, templat, bind);
util_dump_member(stream, uint, templat, flags);
buffer.target = PIPE_BUFFER;
buffer.format = PIPE_FORMAT_R8_UNORM; /* want TYPELESS or similar */
buffer.bind = bind;
- buffer._usage = PIPE_USAGE_DEFAULT;
+ buffer.usage = PIPE_USAGE_DEFAULT;
buffer.flags = 0;
buffer.width0 = size;
buffer.height0 = 1;
buffer->base.screen = screen;
buffer->base.format = PIPE_FORMAT_R8_UNORM; /* ?? */
buffer->base.bind = PIPE_BIND_TRANSFER_READ | bind_flags;
- buffer->base._usage = PIPE_USAGE_IMMUTABLE;
+ buffer->base.usage = PIPE_USAGE_IMMUTABLE;
buffer->base.flags = 0;
buffer->base.width0 = bytes;
buffer->base.height0 = 1;
buf->b.vtbl = &i915_buffer_vtbl;
buf->b.b.screen = screen;
buf->b.b.format = PIPE_FORMAT_R8_UNORM; /* ?? */
- buf->b.b._usage = PIPE_USAGE_IMMUTABLE;
+ buf->b.b.usage = PIPE_USAGE_IMMUTABLE;
buf->b.b.bind = bind;
buf->b.b.flags = 0;
buf->b.b.width0 = bytes;
buf->b.vtbl = &brw_buffer_vtbl;
buf->b.b.screen = screen;
buf->b.b.format = PIPE_FORMAT_R8_UNORM; /* ?? */
- buf->b.b._usage = PIPE_USAGE_IMMUTABLE;
+ buf->b.b.usage = PIPE_USAGE_IMMUTABLE;
buf->b.b.bind = bind;
buf->b.b.width0 = bytes;
buf->b.b.height0 = 1;
buffer->base.screen = screen;
buffer->base.format = PIPE_FORMAT_R8_UNORM; /* ?? */
buffer->base.bind = bind_flags;
- buffer->base._usage = PIPE_USAGE_IMMUTABLE;
+ buffer->base.usage = PIPE_USAGE_IMMUTABLE;
buffer->base.flags = 0;
buffer->base.width0 = bytes;
buffer->base.height0 = 1;
buffer->bo = nouveau_screen_bo_new(pscreen,
16,
- buffer->base._usage,
+ buffer->base.usage,
buffer->base.bind,
buffer->base.width0);
buffer->vtbl = &nv50_buffer_vtbl;
buffer->base.screen = pscreen;
buffer->base.format = PIPE_FORMAT_R8_UNORM;
- buffer->base._usage = PIPE_USAGE_IMMUTABLE;
+ buffer->base.usage = PIPE_USAGE_IMMUTABLE;
buffer->base.bind = bind;
buffer->base.width0 = bytes;
buffer->base.height0 = 1;
buffer->bo = nouveau_screen_bo_new(pscreen,
16,
- buffer->base._usage,
+ buffer->base.usage,
buffer->base.bind,
buffer->base.width0);
buffer->vtbl = &nvfx_buffer_vtbl;
buffer->base.screen = pscreen;
buffer->base.format = PIPE_FORMAT_R8_UNORM;
- buffer->base._usage = PIPE_USAGE_IMMUTABLE;
+ buffer->base.usage = PIPE_USAGE_IMMUTABLE;
buffer->base.bind = usage;
buffer->base.width0 = bytes;
buffer->base.height0 = 1;
PIPE_BIND_DEPTH_STENCIL))
mt->base.base.flags |= NVFX_RESOURCE_FLAG_LINEAR;
else
- if (pt->_usage == PIPE_USAGE_DYNAMIC)
+ if (pt->usage == PIPE_USAGE_DYNAMIC)
mt->base.base.flags |= NVFX_RESOURCE_FLAG_LINEAR;
else {
switch (pt->format) {
nvfx_miptree_layout(mt);
mt->base.bo = nouveau_screen_bo_new(pscreen, 256,
- pt->_usage, pt->bind, mt->total_size);
+ pt->usage, pt->bind, mt->total_size);
if (!mt->base.bo) {
FREE(mt);
return NULL;
depth_only = 1;
/* Render to depth buffer only */
- if (!(fb->zsbuf->texture->_usage & NVFX_RESOURCE_FLAG_LINEAR)) {
+ if (!(fb->zsbuf->texture->usage & NVFX_RESOURCE_FLAG_LINEAR)) {
assert(!(fb->width & (fb->width - 1)) && !(fb->height & (fb->height - 1)));
rt_format = NV34TCL_RT_FORMAT_TYPE_SWIZZLED |
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;
}
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)
{
rbuf->b.vtbl = &r300_buffer_vtbl;
rbuf->b.b.screen = screen;
rbuf->b.b.format = PIPE_FORMAT_R8_UNORM;
- rbuf->b.b._usage = PIPE_USAGE_IMMUTABLE;
+ rbuf->b.b.usage = PIPE_USAGE_IMMUTABLE;
rbuf->b.b.bind = bind;
rbuf->b.b.width0 = bytes;
rbuf->b.b.height0 = 1;
base.depth0 = 0;
base.last_level = 0;
base.nr_samples = 0;
- base._usage = PIPE_USAGE_DYNAMIC;
+ base.usage = PIPE_USAGE_DYNAMIC;
base.bind = 0;
base.flags = R300_RESOURCE_FLAG_TRANSFER;
buffer->base.screen = screen;
buffer->base.format = PIPE_FORMAT_R8_UNORM; /* ?? */
buffer->base.bind = bind_flags;
- buffer->base._usage = PIPE_USAGE_IMMUTABLE;
+ buffer->base.usage = PIPE_USAGE_IMMUTABLE;
buffer->base.flags = 0;
buffer->base.width0 = bytes;
buffer->base.height0 = 1;
sbuf->b.vtbl = &svga_buffer_vtbl;
sbuf->b.b.screen = screen;
sbuf->b.b.format = PIPE_FORMAT_R8_UNORM; /* ?? */
- sbuf->b.b._usage = PIPE_USAGE_IMMUTABLE;
+ sbuf->b.b.usage = PIPE_USAGE_IMMUTABLE;
sbuf->b.b.bind = bind;
sbuf->b.b.width0 = bytes;
sbuf->b.b.height0 = 1;
trace_dump_member_end();
trace_dump_member(uint, templat, last_level);
- trace_dump_member(uint, templat, _usage);
+ trace_dump_member(uint, templat, usage);
trace_dump_member(uint, templat, bind);
trace_dump_member(uint, templat, flags);
unsigned last_level:8; /**< Index of last mipmap level present/defined */
unsigned nr_samples:8; /**< for multisampled surfaces, nr of samples */
- unsigned _usage:8; /**< PIPE_USAGE_x (not a bitmask) */
+ unsigned usage:8; /**< PIPE_USAGE_x (not a bitmask) */
unsigned bind; /**< bitmask of PIPE_BIND_x */
unsigned flags; /**< bitmask of PIPE_RESOURCE_FLAG_x */
templ.height0 = height;
templ.depth0 = 1;
templ.last_level = 0;
- templ._usage = PIPE_USAGE_DEFAULT;
+ templ.usage = PIPE_USAGE_DEFAULT;
templ.bind = PIPE_BIND_SAMPLER_VIEW;
src_tex = screen->resource_create(screen, &templ);
pt.width0 = width0;
pt.height0 = height0;
pt.depth0 = depth0;
- pt._usage = PIPE_USAGE_DEFAULT;
+ pt.usage = PIPE_USAGE_DEFAULT;
pt.bind = bind;
pt.flags = 0;