void si_clear_buffer(struct si_context *sctx, struct pipe_resource *dst,
uint64_t offset, uint64_t size, unsigned value,
- enum si_coherency coher, enum si_method xfer )
+ enum si_coherency coher, enum si_method xfer)
{
struct radeon_winsys *ws = sctx->ws;
struct r600_resource *rdst = r600_resource(dst);
si_test_dma(sscreen);
if (sscreen->debug_flags & DBG(TEST_CLEARBUF_PERF)) {
- si_test_clearbuffer(sscreen);
+ si_test_clearbuffer_perf(sscreen);
}
if (sscreen->debug_flags & (DBG(TEST_VMFAULT_CP) |
void si_test_dma(struct si_screen *sscreen);
/* si_test_clearbuffer.c */
-void si_test_clearbuffer(struct si_screen *sscreen);
+void si_test_clearbuffer_perf(struct si_screen *sscreen);
/* si_uvd.c */
struct pipe_video_codec *si_uvd_create_decoder(struct pipe_context *context,
}
}
-void si_test_clearbuffer(struct si_screen *sscreen)
+void si_test_clearbuffer_perf(struct si_screen *sscreen)
{
struct pipe_screen *screen = &sscreen->b;
struct pipe_context *ctx = screen->context_create(screen, NULL, 0);
exit(0);
}
-
/* clear dst pixels */
si_clear_buffer(sctx, dst, 0, sdst->surface.surf_size, 0,
- true, SI_METHOD_BEST);
+ SI_COHERENCY_SHADER, SI_METHOD_BEST);
memset(dst_cpu.ptr, 0, dst_cpu.layer_stride * tdst.array_size);
/* preparation */