#include "isl/isl.h"
#include "intel_resolve_map.h" /* needed for enum gen6_hiz_op */
-#include "intel_bufmgr.h" /* needed for drm_intel_bo */
struct brw_context;
struct brw_wm_prog_key;
void blorp_batch_finish(struct blorp_batch *batch);
struct blorp_address {
- drm_intel_bo *buffer;
+ void *buffer;
uint32_t read_domains;
uint32_t write_domain;
uint32_t offset;
{
assert(batch->blorp->driver_ctx == batch->driver_batch);
struct brw_context *brw = batch->driver_batch;
+ drm_intel_bo *bo = address.buffer;
drm_intel_bo_emit_reloc(brw->batch.bo, ss_offset,
- address.buffer, address.offset + delta,
+ bo, address.offset + delta,
address.read_domains, address.write_domain);
- uint64_t reloc_val = address.buffer->offset64 + address.offset + delta;
+ uint64_t reloc_val = bo->offset64 + address.offset + delta;
void *reloc_ptr = (void *)brw->batch.map + ss_offset;
#if GEN_GEN >= 8
*(uint64_t *)reloc_ptr = reloc_val;