iris: Drop bo != NULL check from blorp 48b invalidate function.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 21 Jun 2019 23:05:27 +0000 (18:05 -0500)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 22 Jun 2019 01:50:42 +0000 (20:50 -0500)
There is always a BO.

src/gallium/drivers/iris/iris_blorp.c

index 209940e9bc788ff1aadc5eb061268b8440be444b..1df6a884e656c7f137bfdb325bfdbf64db69c7f7 100644 (file)
@@ -210,7 +210,7 @@ blorp_vf_invalidate_for_vb_48b_transitions(struct blorp_batch *blorp_batch,
 
    for (unsigned i = 0; i < num_vbs; i++) {
       struct iris_bo *bo = addrs[i].buffer;
-      uint16_t high_bits = bo ? bo->gtt_offset >> 32u : 0;
+      uint16_t high_bits = bo->gtt_offset >> 32u;
 
       if (high_bits != ice->state.last_vbo_high_bits[i]) {
          need_invalidate = true;