radeonsi: remove early return in si_upload_descriptors
authorMarek Olšák <marek.olsak@amd.com>
Mon, 15 May 2017 17:59:41 +0000 (19:59 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 18 May 2017 20:15:02 +0000 (22:15 +0200)
All updates of descriptors_dirty also set dirty_mask, so the return is
unnecessary. The next commit will want this function to be executed
even if dirty_mask == 0.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_descriptors.c

index 5703f59dbdb1de0249314aa6ed9ef5c703a78430..bc27a124d95bc1883b9693dd420c8eecedaa9631 100644 (file)
@@ -197,9 +197,6 @@ static bool si_upload_descriptors(struct si_context *sctx,
 {
        unsigned list_size = desc->num_elements * desc->element_dw_size * 4;
 
-       if (!desc->dirty_mask)
-               return true;
-
        if (sctx->ce_ib && desc->uses_ce) {
                uint32_t const* list = (uint32_t const*)desc->list;