brw_get_fast_clear_rect(brw, fb, irb->mt, ¶ms.x0, ¶ms.y0,
¶ms.x1, ¶ms.y1);
- } else {
- brw_meta_get_buffer_rect(fb, ¶ms.x0, ¶ms.y0,
- ¶ms.x1, ¶ms.y1);
}
brw_blorp_params_get_clear_kernel(brw, ¶ms, use_simd16_replicated_data);
*y1 = ALIGN(*y1, y_align) / y_scaledown;
}
-void
-brw_meta_get_buffer_rect(const struct gl_framebuffer *fb,
- unsigned *x0, unsigned *y0,
- unsigned *x1, unsigned *y1)
-{
- *x0 = fb->_Xmin;
- *x1 = fb->_Xmax;
- if (fb->Name != 0) {
- *y0 = fb->_Ymin;
- *y1 = fb->_Ymax;
- } else {
- *y0 = fb->Height - fb->_Ymax;
- *y1 = fb->Height - fb->_Ymin;
- }
-}
-
void
brw_get_ccs_resolve_rect(const struct isl_device *dev,
const struct isl_surf *ccs_surf,
unsigned *x0, unsigned *y0,
unsigned *x1, unsigned *y1);
-void
-brw_meta_get_buffer_rect(const struct gl_framebuffer *fb,
- unsigned *x0, unsigned *y0,
- unsigned *x1, unsigned *y1);
-
bool
brw_meta_set_fast_clear_color(struct brw_context *brw,
struct intel_mipmap_tree *mt,