iris: Drop continues in resolve
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Dec 2018 07:30:09 +0000 (23:30 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
Now that we u_bit_scan we know it exists

src/gallium/drivers/iris/iris_resolve.c

index 7a884f813f995c8284fe2215f37e10d0275b6e33..240f6f8c8790502da71f60fa41dcf2ed8be4e3be 100644 (file)
@@ -44,9 +44,6 @@ resolve_sampler_views(struct iris_batch *batch,
    while (views) {
       const int i = u_bit_scan(&views);
       struct iris_sampler_view *isv = shs->textures[i];
-      if (!isv)
-         continue;
-
       struct iris_resource *res = (void *) isv->base.texture;
 
       // XXX: aux tracking
@@ -63,8 +60,6 @@ resolve_image_views(struct iris_batch *batch,
    while (views) {
       const int i = u_bit_scan(&views);
       struct pipe_resource *res = shs->image[i].res;
-      if (!res)
-         continue;
 
       // XXX: aux tracking
       iris_cache_flush_for_read(batch, iris_resource_bo(res));