assert(fenced_buf->validation_flags);
if (fenced_buf->fence) {
- boolean destroyed = fenced_buffer_remove_locked(fenced_mgr, fenced_buf);
+ MAYBE_UNUSED boolean destroyed = fenced_buffer_remove_locked(fenced_mgr, fenced_buf);
assert(!destroyed);
}
if (fence) {
struct pipe_transfer *src_trans, *dst_trans;
uint8_t *dst_map;
const uint8_t *src_map;
- enum pipe_format src_format, dst_format;
+ MAYBE_UNUSED enum pipe_format src_format;
+ enum pipe_format dst_format;
struct pipe_box dst_box;
assert(src && dst);
ushort min_index,
ushort max_index )
{
- struct lp_setup_context *setup = lp_setup_context(vbr);
+ MAYBE_UNUSED struct lp_setup_context *setup = lp_setup_context(vbr);
assert( setup->vertex_buffer_size >= (max_index+1) * setup->vertex_size );
/* do nothing */
}
struct r600_context *rctx = (struct r600_context *)pipe;
struct pipe_box box;
- struct compute_memory_item *prev;
+ MAYBE_UNUSED struct compute_memory_item *prev;
COMPUTE_DBG(pool->screen, "* compute_memory_move_item()\n"
" + Moving item %"PRIi64" from %"PRIi64" (%"PRIi64" bytes) to %"PRIu64" (%"PRIu64" bytes)\n",
if (!sp_tex->dt) {
/* regular texture - setup array of mipmap level offsets */
- struct pipe_resource *res = view->texture;
+ MAYBE_UNUSED struct pipe_resource *res = view->texture;
int j;
if (view->target != PIPE_BUFFER) {
{
struct softpipe_tile_cache *tc;
uint pos;
- int maxLevels, maxTexSize;
+ MAYBE_UNUSED int maxTexSize;
+ int maxLevels;
/* sanity checking: max sure MAX_WIDTH/HEIGHT >= largest texture image */
maxLevels = pipe->screen->get_param(pipe->screen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS);
void
trace_context_check(const struct pipe_context *pipe)
{
- struct trace_context *tr_ctx = (struct trace_context *) pipe;
+ MAYBE_UNUSED struct trace_context *tr_ctx = (struct trace_context *) pipe;
assert(tr_ctx->base.destroy == trace_context_destroy);
}