summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-06-21 18:05:27 -0500
committerKenneth Graunke <[email protected]>2019-06-21 20:50:42 -0500
commit262787b9bc3d4281f10a1c0247fc2a2b63b234b2 (patch)
tree4e674a6487a922a1bc839ebb1b44556129bdcf01
parent5da37a826b873bc1bc0623ddad1814dd646e3226 (diff)
iris: Drop bo != NULL check from blorp 48b invalidate function.
There is always a BO.
-rw-r--r--src/gallium/drivers/iris/iris_blorp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_blorp.c b/src/gallium/drivers/iris/iris_blorp.c
index 209940e9bc7..1df6a884e65 100644
--- a/src/gallium/drivers/iris/iris_blorp.c
+++ b/src/gallium/drivers/iris/iris_blorp.c
@@ -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;