diff options
author | Marek Olšák <[email protected]> | 2017-05-15 19:59:41 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-05-18 22:15:02 +0200 |
commit | 06690e63f76441641379d8606c28b17f83c0776e (patch) | |
tree | 57fd64c0ff38b395b80d285782e3ad0fe13c3a43 | |
parent | b8f8d9e46c6ac625928c9b098491fa26e4cf8f71 (diff) |
radeonsi: remove early return in si_upload_descriptors
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 <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_descriptors.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 5703f59dbdb..bc27a124d95 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -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; |