Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
BEGIN_BATCH(1);
OUT_BATCH(_3DSTATE_VF_STATISTICS << 16 | 1);
ADVANCE_BATCH();
+
+ if (devinfo->gen >= 8) {
+ BEGIN_BATCH(4);
+ OUT_BATCH(_3DSTATE_DRAWING_RECTANGLE << 16 | 1);
+ OUT_BATCH(0);
+ OUT_BATCH(~0);
+ OUT_BATCH(0);
+ ADVANCE_BATCH();
+ }
}
/**
gen8_write_pma_stall_bits(brw, 0);
#endif
+#if GEN_GEN < 8
blorp_emit(batch, GENX(3DSTATE_DRAWING_RECTANGLE), rect) {
rect.ClippedDrawingRectangleXMax = MAX2(params->x1, params->x0) - 1;
rect.ClippedDrawingRectangleYMax = MAX2(params->y1, params->y0) - 1;
}
+#endif
blorp_exec(batch, params);
.emit = genX(upload_line_stipple),
};
+#if GEN_GEN < 8
/* Constant single cliprect for framebuffer object or DRI2 drawing */
static void
genX(upload_drawing_rect)(struct brw_context *brw)
},
.emit = genX(upload_drawing_rect),
};
+#endif
static uint32_t *
genX(emit_vertex_buffer_state)(struct brw_context *brw,
&genX(line_stipple),
- &genX(drawing_rect),
-
&genX(vf_topology),
&brw_indices,