void
blorp_clear(struct blorp_batch *batch,
const struct blorp_surf *surf,
+ enum isl_format format, struct isl_swizzle swizzle,
uint32_t level, uint32_t start_layer, uint32_t num_layers,
uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1,
- enum isl_format format, union isl_color_value clear_color,
+ union isl_color_value clear_color,
const bool color_write_disable[4]);
void
void
blorp_clear(struct blorp_batch *batch,
const struct blorp_surf *surf,
+ enum isl_format format, struct isl_swizzle swizzle,
uint32_t level, uint32_t start_layer, uint32_t num_layers,
uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1,
- enum isl_format format, union isl_color_value clear_color,
+ union isl_color_value clear_color,
const bool color_write_disable[4])
{
struct blorp_params params;
while (num_layers > 0) {
brw_blorp_surface_info_init(batch->blorp, ¶ms.dst, surf, level,
start_layer, format, true);
+ params.dst.view.swizzle = swizzle;
/* We may be restricted on the number of layers we can bind at any one
* time. In particular, Sandy Bridge has a maximum number of layers of
struct blorp_batch batch;
blorp_batch_init(&brw->blorp, &batch, brw);
- blorp_clear(&batch, &surf, level, irb->mt_layer, num_layers,
- x0, y0, x1, y1,
+ blorp_clear(&batch, &surf,
(enum isl_format)brw->render_target_format[format],
+ ISL_SWIZZLE_IDENTITY,
+ level, irb->mt_layer, num_layers,
+ x0, y0, x1, y1,
clear_color, color_write_disable);
blorp_batch_finish(&batch);