memset(¶ms.wm_inputs, 0xff, 4*sizeof(float));
params.fast_clear_op = GEN7_PS_RENDER_TARGET_FAST_CLEAR_ENABLE;
- brw_get_fast_clear_rect(brw, surf->aux_surf, ¶ms.x0, ¶ms.y0,
- ¶ms.x1, ¶ms.y1);
+ brw_get_fast_clear_rect(&brw->isl_dev, surf->aux_surf,
+ ¶ms.x0, ¶ms.y0, ¶ms.x1, ¶ms.y1);
brw_blorp_params_get_clear_kernel(brw, ¶ms, true);
* area of the framebuffer to be cleared.
*/
void
-brw_get_fast_clear_rect(const struct brw_context *brw,
+brw_get_fast_clear_rect(const struct isl_device *dev,
const struct isl_surf *aux_surf,
unsigned *x0, unsigned *y0,
unsigned *x1, unsigned *y1)
/* SKL+ line alignment requirement for Y-tiled are half those of the prior
* generations.
*/
- if (brw->gen >= 9)
+ if (dev->info->gen >= 9)
y_align *= 16;
else
y_align *= 32;
bool *mirror_x, bool *mirror_y);
void
-brw_get_fast_clear_rect(const struct brw_context *brw,
+brw_get_fast_clear_rect(const struct isl_device *dev,
const struct isl_surf *aux_surf,
unsigned *x0, unsigned *y0,
unsigned *x1, unsigned *y1);