assert(!job->msaa || !job->double_buffer);
#if V3D_VERSION >= 71
- unreachable("HW generation 71 not supported yet.");
+ cl_emit(&job->bcl, TILE_BINNING_MODE_CFG, config) {
+ config.width_in_pixels = job->draw_width;
+ config.height_in_pixels = job->draw_height;
+
+ config.log2_tile_width = log2_tile_size(job->tile_width);
+ config.log2_tile_height = log2_tile_size(job->tile_height);
+
+ /* FIXME: ideallly we would like next assert on the packet header (as is
+ * general, so also applies to GL). We would need to expand
+ * gen_pack_header for that.
+ */
+ assert(config.log2_tile_width == config.log2_tile_height ||
+ config.log2_tile_width == config.log2_tile_height + 1);
+ }
+
#endif
#if V3D_VERSION >= 40 && V3D_VERSION <= 42
#include "util/format/u_format.h"
#include "util/macros.h"
#include "v3d_context.h"
-#include "broadcom/common/v3d_tiling.h"
#include "broadcom/common/v3d_macros.h"
+#include "broadcom/common/v3d_tiling.h"
+#include "broadcom/common/v3d_util.h"
#include "broadcom/cle/v3dx_pack.h"
#define PIPE_CLEAR_COLOR_BUFFERS (PIPE_CLEAR_COLOR0 | \
config.maximum_bpp_of_all_render_targets = job->internal_bpp;
#endif
#if V3D_VERSION >= 71
- unreachable("HW generation 71 not supported yet.");
+ config.log2_tile_width = log2_tile_size(job->tile_width);
+ config.log2_tile_height = log2_tile_size(job->tile_height);
+
+ /* FIXME: ideallly we would like next assert on the packet header (as is
+ * general, so also applies to GL). We would need to expand
+ * gen_pack_header for that.
+ */
+ assert(config.log2_tile_width == config.log2_tile_height ||
+ config.log2_tile_width == config.log2_tile_height + 1);
#endif
}