i965: Make brw_emit_reloc assert that the target BO is non-NULL.

You need an actual BO to emit a relocation to it.

Suggested by me, authored by Chris, split out of a larger patch.
This commit is contained in:
Kenneth Graunke 2017-08-02 16:52:39 -07:00
parent 5c007203b7
commit 1d0bd0d174
1 changed files with 2 additions and 0 deletions

View File

@ -750,6 +750,8 @@ brw_emit_reloc(struct intel_batchbuffer *batch, uint32_t batch_offset,
struct brw_bo *target, uint32_t target_offset,
uint32_t read_domains, uint32_t write_domain)
{
assert(target != NULL);
uint64_t offset64;
if (batch->reloc_count == batch->reloc_array_size) {