void
blorp_fast_clear(struct blorp_batch *batch,
const struct blorp_surf *surf,
- uint32_t level, uint32_t layer,
+ uint32_t level, uint32_t layer, enum isl_format format,
uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1);
void
void
blorp_fast_clear(struct blorp_batch *batch,
const struct blorp_surf *surf,
- uint32_t level, uint32_t layer,
+ uint32_t level, uint32_t layer, enum isl_format format,
uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1)
{
struct blorp_params params;
blorp_params_get_clear_kernel(batch->blorp, ¶ms, true);
brw_blorp_surface_info_init(batch->blorp, ¶ms.dst, surf, level, layer,
- surf->surf->format, true);
+ format, true);
batch->blorp->exec(batch, ¶ms);
}
struct blorp_batch batch;
blorp_batch_init(&brw->blorp, &batch, brw);
- blorp_fast_clear(&batch, &surf, level, layer, x0, y0, x1, y1);
+ blorp_fast_clear(&batch, &surf, level, layer,
+ (enum isl_format)brw->render_target_format[format],
+ x0, y0, x1, y1);
blorp_batch_finish(&batch);
/* Now that the fast clear has occurred, put the buffer in