last_layer = util_max_layer(This->view[0]->texture, base_level);
- nine_context_gen_mipmap(This->base.base.device, This->base.resource,
+ nine_context_gen_mipmap(This->base.base.device, (struct NineUnknown *)This,
+ This->base.resource,
base_level, last_level,
first_layer, last_layer, filter);
}
CSMT_ITEM_NO_WAIT(nine_context_gen_mipmap,
+ ARG_BIND_REF(struct NineUnknown, dst),
ARG_BIND_RES(struct pipe_resource, res),
ARG_VAL(UINT, base_level),
ARG_VAL(UINT, last_level),
{
struct nine_context *context = &device->context;
+ /* We just bind dst for the bind count */
+ (void)dst;
+
util_gen_mipmap(context->pipe, res, res->format, base_level,
last_level, first_layer, last_layer, filter);
}
void
nine_context_gen_mipmap(struct NineDevice9 *device,
+ struct NineUnknown *dst,
struct pipe_resource *res,
UINT base_level, UINT last_level,
UINT first_layer, UINT last_layer,