#include "util/u_dynarray.h"
#include "util/perf/u_trace.h"
-#include "drm-uapi/i915_drm.h"
#include "common/intel_decoder.h"
#include "ds/intel_driver_ds.h"
#include "ds/intel_tracepoints.h"
bool iris_batch_prepare_noop(struct iris_batch *batch, bool noop_enable);
-#define RELOC_WRITE EXEC_OBJECT_WRITE
-
void iris_use_pinned_bo(struct iris_batch *batch, struct iris_bo *bo,
bool writable, enum iris_domain access);
.addr = (struct blorp_address) {
.buffer = res->bo,
.offset = res->offset,
- .reloc_flags = is_dest ? EXEC_OBJECT_WRITE : 0,
+ .reloc_flags = is_dest ? IRIS_BLORP_RELOC_FLAGS_EXEC_OBJECT_WRITE : 0,
.mocs = iris_mocs(res->bo, isl_dev,
is_dest ? ISL_SURF_USAGE_RENDER_TARGET_BIT
: ISL_SURF_USAGE_TEXTURE_BIT),
surf->aux_addr = (struct blorp_address) {
.buffer = res->aux.bo,
.offset = res->aux.offset,
- .reloc_flags = is_dest ? EXEC_OBJECT_WRITE : 0,
+ .reloc_flags = is_dest ? IRIS_BLORP_RELOC_FLAGS_EXEC_OBJECT_WRITE : 0,
.mocs = iris_mocs(res->bo, isl_dev, 0),
.local_hint = devinfo->has_flat_ccs ||
iris_bo_likely_local(res->aux.bo),
};
struct blorp_address dst_addr = {
.buffer = dst_res->bo, .offset = dst_res->offset + dstx,
- .reloc_flags = EXEC_OBJECT_WRITE,
+ .reloc_flags = IRIS_BLORP_RELOC_FLAGS_EXEC_OBJECT_WRITE,
.mocs = iris_mocs(dst_res->bo, &screen->isl_dev,
ISL_SURF_USAGE_RENDER_TARGET_BIT),
.local_hint = iris_bo_likely_local(dst_res->bo),
struct iris_batch *batch = blorp_batch->driver_batch;
struct iris_bo *bo = addr.buffer;
- iris_use_pinned_bo(batch, bo, addr.reloc_flags & RELOC_WRITE,
+ iris_use_pinned_bo(batch, bo,
+ addr.reloc_flags & IRIS_BLORP_RELOC_FLAGS_EXEC_OBJECT_WRITE,
IRIS_DOMAIN_NONE);
/* Assume this is a general address, not relative to a base. */