i965/urb: fixes division by zero
[mesa.git] / src / mesa / drivers / dri / i965 / brw_meta_util.h
index c6a0674c429243ad01bb2ef1b5fdfcb29e87311d..0929497b1869962b54fa5fd6910d73cb3fb85f11 100644 (file)
@@ -60,11 +60,21 @@ brw_meta_get_buffer_rect(const struct gl_framebuffer *fb,
                          unsigned *x0, unsigned *y0,
                          unsigned *x1, unsigned *y1);
 
-void
+bool
 brw_meta_set_fast_clear_color(struct brw_context *brw,
                               struct intel_mipmap_tree *mt,
                               const union gl_color_union *color);
 
+bool
+brw_is_color_fast_clear_compatible(struct brw_context *brw,
+                                   const struct intel_mipmap_tree *mt,
+                                   const union gl_color_union *color);
+
+struct gl_renderbuffer *brw_get_rb_for_slice(struct brw_context *brw,
+                                             struct intel_mipmap_tree *mt,
+                                             unsigned level, unsigned layer,
+                                             bool flat);
+
 #ifdef __cplusplus
 }
 #endif