si_set_buf_desc_address(buf, offset, &desc_list[0]);
*desc_dirty = true;
- sctx->bindless_descriptors_dirty = true;
}
}
p_atomic_read(&rtex->framebuffers_bound))
sctx->need_check_render_feedback = true;
- /* Re-upload the descriptor if it has been updated
- * while it wasn't resident.
- */
si_update_resident_texture_descriptor(sctx, tex_handle);
- if (tex_handle->desc_dirty)
- sctx->bindless_descriptors_dirty = true;
} else {
si_invalidate_bindless_buf_desc(sctx,
tex_handle->desc_slot,
&tex_handle->desc_dirty);
}
+ /* Re-upload the descriptor if it has been updated while it
+ * wasn't resident.
+ */
+ if (tex_handle->desc_dirty)
+ sctx->bindless_descriptors_dirty = true;
+
/* Add the texture handle to the per-context list. */
util_dynarray_append(&sctx->resident_tex_handles,
struct si_texture_handle *, tex_handle);
p_atomic_read(&rtex->framebuffers_bound))
sctx->need_check_render_feedback = true;
- /* Re-upload the descriptor if it has been updated
- * while it wasn't resident.
- */
si_update_resident_image_descriptor(sctx, img_handle);
- if (img_handle->desc_dirty)
- sctx->bindless_descriptors_dirty = true;
-
} else {
si_invalidate_bindless_buf_desc(sctx,
img_handle->desc_slot,
&img_handle->desc_dirty);
}
+ /* Re-upload the descriptor if it has been updated while it
+ * wasn't resident.
+ */
+ if (img_handle->desc_dirty)
+ sctx->bindless_descriptors_dirty = true;
+
/* Add the image handle to the per-context list. */
util_dynarray_append(&sctx->resident_img_handles,
struct si_image_handle *, img_handle);