bytes_for_commands, 100.0f * bytes_for_commands / BATCH_SZ,
bytes_for_state, 100.0f * bytes_for_state / STATE_SZ,
brw->batch.exec_count,
- (float) brw->batch.aperture_space / (1024 * 1024),
+ (float) (brw->batch.aperture_space / (1024 * 1024)),
brw->batch.batch_relocs.reloc_count,
brw->batch.state_relocs.reloc_count);
return ret;
}
-bool
-brw_batch_has_aperture_space(struct brw_context *brw, unsigned extra_space)
-{
- return brw->batch.aperture_space + extra_space <=
- brw->screen->aperture_threshold;
-}
-
bool
brw_batch_references(struct intel_batchbuffer *batch, struct brw_bo *bo)
{
void intel_batchbuffer_data(struct brw_context *brw,
const void *data, GLuint bytes);
-bool brw_batch_has_aperture_space(struct brw_context *brw,
- unsigned extra_space_in_bytes);
+static inline bool
+brw_batch_has_aperture_space(struct brw_context *brw, uint64_t extra_space)
+{
+ return brw->batch.aperture_space + extra_space <=
+ brw->screen->aperture_threshold;
+}
bool brw_batch_references(struct intel_batchbuffer *batch, struct brw_bo *bo);