#define IRIS_BATCH_COUNT 2
-struct iris_address {
- struct iris_bo *bo;
- uint64_t offset;
- bool write;
-};
-
struct iris_batch {
struct iris_screen *screen;
struct pipe_debug_callback *dbg;
{
struct iris_batch *batch = blorp_batch->driver_batch;
- return (struct blorp_address) { .buffer = batch->screen->workaround_bo };
+ return (struct blorp_address) {
+ .buffer = batch->screen->workaround_address.bo,
+ .offset = batch->screen->workaround_address.offset,
+ };
}
static void
iris_emit_pipe_control_write(batch, reason,
flags | PIPE_CONTROL_CS_STALL |
PIPE_CONTROL_WRITE_IMMEDIATE,
- batch->screen->workaround_bo, 0, 0);
+ batch->screen->workaround_address.bo,
+ batch->screen->workaround_address.offset, 0);
}
/**
if (!screen->workaround_bo)
return NULL;
+ screen->workaround_address = (struct iris_address) {
+ .bo = screen->workaround_bo,
+ .offset = 0,
+ };
+
brw_process_intel_debug_variable();
screen->driconf.dual_color_blend_by_location =
void (*lost_genx_state)(struct iris_context *ice, struct iris_batch *batch);
};
+struct iris_address {
+ struct iris_bo *bo;
+ uint64_t offset;
+ bool write;
+};
+
struct iris_screen {
struct pipe_screen base;
* require scratch writes or reads from some unimportant memory.
*/
struct iris_bo *workaround_bo;
+ struct iris_address workaround_address;
struct disk_cache *disk_cache;
};
push_bos->buffers[n].length = range->length;
push_bos->buffers[n].addr =
res ? ro_bo(res->bo, range->start * 32 + cbuf->buffer_offset)
- : ro_bo(batch->screen->workaround_bo, 0);
+ : batch->screen->workaround_address;
n++;
}
*/
iris_emit_pipe_control_write(batch, "WA for stencil state",
PIPE_CONTROL_WRITE_IMMEDIATE,
- batch->screen->workaround_bo, 0, 0);
+ batch->screen->workaround_address.bo,
+ batch->screen->workaround_address.offset, 0);
}
union isl_color_value clear_value = { .f32 = { 0, } };
flags |= PIPE_CONTROL_WRITE_IMMEDIATE;
post_sync_flags |= PIPE_CONTROL_WRITE_IMMEDIATE;
non_lri_post_sync_flags |= PIPE_CONTROL_WRITE_IMMEDIATE;
- bo = batch->screen->workaround_bo;
+ bo = batch->screen->workaround_address.bo;
+ offset = batch->screen->workaround_address.offset;
}
}