gallium/u_blitter: add gallium blit implementation
The original blit function is extended and the otAher functions reuse it. Tested-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -577,9 +577,11 @@ static void r300_resource_copy_region(struct pipe_context *pipe,
|
||||
src_view = r300_create_sampler_view_custom(pipe, src, &src_templ, src_width0, src_height0);
|
||||
|
||||
r300_blitter_begin(r300, R300_COPY);
|
||||
util_blitter_copy_texture_view(r300->blitter, dst_view, ~0, dstx, dsty,
|
||||
src_view, 0, src_box,
|
||||
src_width0, src_height0, PIPE_MASK_RGBAZS);
|
||||
util_blitter_blit_generic(r300->blitter, dst_view, dstx, dsty,
|
||||
abs(src_box->width), abs(src_box->height),
|
||||
src_view, src_box,
|
||||
src_width0, src_height0, PIPE_MASK_RGBAZS,
|
||||
PIPE_TEX_FILTER_NEAREST, NULL, FALSE);
|
||||
r300_blitter_end(r300);
|
||||
|
||||
pipe_surface_reference(&dst_view, NULL);
|
||||
|
Reference in New Issue
Block a user