D3DTEXTUREFILTERTYPE Filter )
{
struct pipe_screen *screen = This->screen;
- struct pipe_context *pipe = NineDevice9_GetPipe(This);
+ struct pipe_context *pipe;
struct NineSurface9 *dst = NineSurface9(pDestSurface);
struct NineSurface9 *src = NineSurface9(pSourceSurface);
struct pipe_resource *dst_res = NineSurface9_GetResource(dst);
PIPE_BIND_RENDER_TARGET),
D3DERR_INVALIDCALL);
- pipe->blit(pipe, &blit);
+ nine_context_blit(This, &blit);
} else {
assert(blit.dst.box.x >= 0 && blit.dst.box.y >= 0 &&
blit.src.box.x >= 0 && blit.src.box.y >= 0 &&
blit.src.box.y + blit.src.box.height <= src->desc.Height);
/* Or drivers might crash ... */
DBG("Using resource_copy_region.\n");
+ pipe = NineDevice9_GetPipe(This);
pipe->resource_copy_region(pipe,
blit.dst.resource, blit.dst.level,
blit.dst.box.x, blit.dst.box.y, blit.dst.box.z,
context->pipe->draw_vbo(context->pipe, &info);
}
+CSMT_ITEM_NO_WAIT(nine_context_blit,
+ ARG_BIND_BLIT(struct pipe_blit_info, blit))
+{
+ struct nine_context *context = &device->context;
+
+ context->pipe->blit(context->pipe, blit);
+}
+
struct pipe_query *
nine_context_create_query(struct NineDevice9 *device, unsigned query_type)
{
struct pipe_vertex_buffer *vbuf,
struct pipe_index_buffer *ibuf);
+void
+nine_context_blit(struct NineDevice9 *device,
+ struct pipe_blit_info *blit);
+
struct pipe_query *
nine_context_create_query(struct NineDevice9 *device, unsigned query_type);