*/
#include "util/u_surface.h"
-#include "intel_reg.h"
#include "ilo_blitter.h"
#include "ilo_context.h"
-#include "ilo_cp.h"
-#include "ilo_resource.h"
-#include "ilo_screen.h"
#include "ilo_blit.h"
static void
src, src_level, src_box))
return;
+ if (ilo_blitter_pipe_copy_resource(ilo->blitter,
+ dst, dst_level, dstx, dsty, dstz,
+ src, src_level, src_box))
+ return;
+
util_resource_copy_region(&ilo->base, dst, dst_level,
dstx, dsty, dstz, src, src_level, src_box);
}
struct pipe_resource *src, unsigned src_level,
const struct pipe_box *src_box)
{
- return false;
+ const unsigned mask = PIPE_MASK_RGBAZS;
+ const bool copy_all_samples = true;
+
+ /* not until we allow rendertargets to be buffers */
+ if (dst->target == PIPE_BUFFER || src->target == PIPE_BUFFER)
+ return false;
+
+ if (!util_blitter_is_copy_supported(blitter->pipe_blitter, dst, src, mask))
+ return false;
+
+ ilo_blitter_pipe_begin(blitter, ILO_BLITTER_PIPE_COPY);
+
+ util_blitter_copy_texture(blitter->pipe_blitter,
+ dst, dst_level, dst_x, dst_y, dst_z,
+ src, src_level, src_box,
+ mask, copy_all_samples);
+
+ ilo_blitter_pipe_end(blitter);
+
+ return true;
}
bool