#endif
#include "util/u_format.h"
-#include "util/u_gen_mipmap.h"
#define DBG_CHANNEL DBG_BASETEXTURE
void NINE_WINAPI
NineBaseTexture9_GenerateMipSubLevels( struct NineBaseTexture9 *This )
{
- struct pipe_context *pipe;
- struct pipe_resource *resource;
unsigned base_level = 0;
unsigned last_level = This->base.info.last_level - This->managed.lod;
unsigned first_layer = 0;
last_layer = util_max_layer(This->view[0]->texture, base_level);
- resource = This->base.resource;
-
- pipe = NineDevice9_GetPipe(This->base.base.device);
- util_gen_mipmap(pipe, resource,
- resource->format, base_level, last_level,
- first_layer, last_layer, filter);
+ nine_context_gen_mipmap(This->base.base.device, This->base.resource,
+ base_level, last_level,
+ first_layer, last_layer, filter);
This->dirty_mip = FALSE;
}